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

Handle timeout due to pool exhaustion #131

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

sbfaulkner
Copy link
Contributor

@sbfaulkner sbfaulkner commented Apr 9, 2021

if the pool has no more available connections, it raises a timeout exception (ConnectionPool::TimeoutError which is a subclass of Timeout::Error)

however the ensure currently catches it and masks that exception with a ConnectionPool::Error: no connections are checked out

as far as I can tell, scoping the exception handling block a little tighter has no other impact than letting this exception through, so the consumer can actually detect the issue

any feedback/suggestions/alternatives welcome

cc @drbrain @tenderlove

@sbfaulkner sbfaulkner changed the title Handle timeout due to pool starvation Handle timeout due to pool exhaustion Apr 9, 2021
@sbfaulkner sbfaulkner force-pushed the handle-timeout-due-to-starvation branch from 25c2dd9 to c3eb6e4 Compare November 9, 2023 14:43
@sbfaulkner
Copy link
Contributor Author

rebased and re-bumped version

@rud
Copy link

rud commented Nov 9, 2023

I still find this a good set of changes

@tenderlove
Copy link
Collaborator

Yes this is good. Sorry I didn't see it for the past 3 years 😓

If you rebase one more time I'll merge.

@sbfaulkner sbfaulkner force-pushed the handle-timeout-due-to-starvation branch from c3eb6e4 to 49d678c Compare December 4, 2024 23:49
@sbfaulkner sbfaulkner force-pushed the handle-timeout-due-to-starvation branch from b53e9a7 to 6665d26 Compare December 4, 2024 23:57
@sbfaulkner
Copy link
Contributor Author

@tenderlove so be it... rebased and ready for your tender loving care 💚

@tenderlove tenderlove merged commit 234f3b2 into drbrain:master Dec 5, 2024
16 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.

3 participants