8000 Fix internal return value that prevented error handling. by dimitri · Pull Request #204 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix internal return value that prevented error handling. #204

8000
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
Mar 13, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Mar 13, 2023

In case of early exit without retries from function copydb_copy_table we would break out of the retry loop and return true, allowing pgcopydb to continue working and report a successful return code to the OS.

In passing, also review error handling in lower-level pg_copy function to prevent trying to COMMIT a transaction in an already failed connection.

Finally, we could have either a client-side connection error or a server-side reported connection error: improve our code to take both the situations into account.

Should fix #201.

In case of early exit without retries from function copydb_copy_table we
would break out of the retry loop and return true, allowing pgcopydb to
continue working and report a successful return code to the OS.

In passing, also review error handling in lower-level pg_copy function to
prevent trying to COMMIT a transaction in an already failed connection.

Finally, we 
85A5
could have either a client-side connection error or a
server-side reported connection error: improve our code to take both the
situations into account.
@dimitri dimitri added the bug Something isn't working label Mar 13, 2023
@dimitri dimitri self-assigned this Mar 13, 2023
@dimitri dimitri merged commit 3e40aee into main Mar 13, 2023
@dimitri dimitri deleted the fix/copydb-copy-table-return-value branch March 13, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration continues even after failing
1 participant
0