8000 Vaccum workers must be stopped after index workers by arajkumar · Pull Request #815 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vaccum workers must be stopped after index workers #815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

arajkumar
Copy link
Contributor

Vacuum workers are signaled to STOP as soon as the table copy workers are done. This is incorrect, as the index process can still work on indexes even after the termination of copy workers. Vacuum workers should only be signaled to stop once all indexes are processed.

Solution: From the index supervisor, send the STOP signal to the vacuum workers after all index workers have exited. This preserves the order of worker termination.

Fixes #812

Vacuum workers are signaled to STOP as soon as the table copy workers are done. This is incorrect, as the index process can still work on indexes even after the termination of copy workers. Vacuum workers should only be signaled to stop once all indexes are processed.

Solution: From the index supervisor, send the STOP signal to the vacuum workers after all index workers have exited. This preserves the order of worker termination.

Fixes dimitri#812

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
@arajkumar arajkumar changed the title Problem: Vacuum worker exits early (just after table copy) Vaccum workers must be stopped after index workers Jun 11, 2024
@dimitri dimitri merged commit b7c7ac4 into dimitri:main Jun 11, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem: vacuum analyze is not performed on tables with indexes
2 participants
0