Skip to content
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

fix: Fail on first pg error, to avoid infinite iteration #33

Merged
merged 1 commit into from Sep 16, 2019

Conversation

amatissart
Copy link
Contributor

Errors from the postgres database were not handled properly. A broken connection could lead to an infinite loop with warning messages:

WARN Impossible to load the row Error(Io(Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }))

The new implementation uses itertools::process_results to exit early if such an error occurs.

@amatissart amatissart merged commit 1dd2388 into master Sep 16, 2019
@amatissart amatissart deleted the fix-pg-error branch January 30, 2020 14:24
remi-dupre pushed a commit that referenced this pull request Sep 1, 2022
fix: Fail on first pg error, to avoid infinite iteration
remi-dupre pushed a commit that referenced this pull request Sep 2, 2022
fix: Fail on first pg error, to avoid infinite iteration
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.

None yet

2 participants