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 broken pool connection cleanup #230

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Conversation

fantix
Copy link
Member

@fantix fantix commented Aug 24, 2021

When a connection is broken (not actively closed by the user), that
connection holder in the pool is not cleaned, leading to issues like
creating zombie connections in the pool or pool.aclose() hangs forever.

To test retrying_transaction(), connection errors from
wait_for_message() is wrapped into a retryable EdgeDB client error type.
This is partially fixing the same issue in #222, but the latter should
aim for a more complete solution.

@fantix fantix requested review from elprans and fmoor August 24, 2021 15:17
@fantix fantix marked this pull request as ready for review August 24, 2021 15:17
When a connection is broken (not actively closed by the user), that
connection holder in the pool is not cleaned, leading to issues like
creating zombie connections in the pool or pool.aclose() hangs forever.

To test retrying_transaction(), connection errors from
wait_for_message() is wrapped into a retryable EdgeDB client error type.
This is partially fixing the same issue in edgedb#222, but the latter should
aim for a more complete solution.
@fantix fantix merged commit be44959 into edgedb:master Aug 24, 2021
@fantix fantix deleted the pool-conn-broken branch August 24, 2021 19:55
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.

3 participants