8000 Fix error handling of fork() calls. by dimitri · Pull Request #459 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix error handling of fork() calls. #459

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 1 commit into from
Sep 7, 2023
Merged

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Sep 7, 2023

When failing to start a sub-process (out-of-memory can be reported when calling the fork() system call), properly handle the error rather than continue trying the migration.

In order to cancel the other sub-processes that were succesfully started we then send a TERM signal to all processes in our process group.

Fixes #458

When failing to start a sub-process (out-of-memory can be reported when
calling the fork() system call), properly handle the error rather than
continue trying the migration.

In order to cancel the other sub-processes that were succesfully started we
then send a TERM signal to all processes in our process group.
@dimitri dimitri merged commit 6bc29fc into main Sep 7, 2023
@dimitri dimitri deleted the fix/handle-fork-failure branch September 7, 2023 12:36
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.

pgcopydb doesnt fail fast for errors:Failed to fork a worker process: Cannot allocate memory
1 participant
0