-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
No backoff if PoolEntryCreator is interrupted #2265
Comments
What would cause the adder thread to be interrupted besides shutdown? |
thanks Brett for the quick response! unfortunately, i was not able to figure out the root cause reliably. PS: just in case, i should mention that i wrote a little method to support the statement "thread does not sleep"
End of the stacktrace:
|
Thanks. Still trying to figure this out. Is this running in Google GCD or something? Are you supplying an externally managed |
PS: yes, it does not make sense to me, neither.
|
This is a very specific and unusual error. Many threads point to an Oracle listener process falling over. But that is not conclusive. I suggest looking at these Google results and this ChatGPT diagnosis. It seems to me handling Also, you should ensure that you are running in HikariCP v6.2.1. Some threads point to improperly closed connections, and v6.0.0 contained a fix related to connection closing (double-close). |
https://github.com/brettwooldridge/HikariCP/blob/ffdb8106bccb285d1775af1e8b040bfce4588dc1/src/main/java/com/zaxxer/hikari/pool/HikariPool.java#L758C19-L758C31
Method UtilityElf.quietlySleep() retains the interrupted flag
As a result PoolEntryCreator does not sleep at all - i.e. no backoff.
Possibly the interrupted flag also prevents creating new pool entry.
@brettwooldridge
my suggestion would be to clear the interrupted flag in the snippet above.
i.e.
PS: this might be related to #2208 and other "database outage" issues mentioned in it
The text was updated successfully, but these errors were encountered: