-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
bb8 deadlocks in rust-pool-benchmark #122
Comments
Thanks for the report! Don't have time to look into it this week, but will try to investigate soon. |
Hello. We're using bb8-postgres. Our app have been sometimes faced stall. And I'm thinking that these stall possibly a little related by this issue. GuessIn my guess, this fn causes Lines 102 to 146 in 1246142
This fn consists of three parts.
"Not in luck" that I wrote above is when Prerequisite
Flow
(In this situation, expects to return a old connection, that will drop during runs
7. Execute Part2. Enqueue to waiting queue. How to modifyBetween Part2 and Part3, it might be a good idea to check for the existence of idle connections again. I'm not familiar with multi task programming. The guess may be wrong. But rust-pool-benchmark fails also in my PC. |
Thanks for the analysis! Can you try to write a test case for this? If you submit that as a PR I can probably fix this pretty soon. |
Hi, @djc |
There's a potential fix in #154, reviewing that is on my list. |
This should be fixed since #186. |
I just stumbled across the rust-pool-benchmark repository by @Astro36 and found bb8 deadlocking. Both
0.7
and0.8
are affected:As the maintainer of deadpool I'm not using bb8 myself so I haven't investigated any further. I just wanted to let you know about it.
The text was updated successfully, but these errors were encountered: