You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that when an exception is thrown inside a newSuspendedTransaction, the database connection is not given back to the pool. So, after some exceptions are thrown the pool runs out of connections.
[HikariPool-1 housekeeper] DEBUG com.zaxxer.hikari.pool.HikariPool -
HikariPool-1 - Pool stats (total=3, active=3, idle=0, waiting=2)
...
org.jetbrains.exposed.exceptions.ExposedSQLException:
java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30001ms.
Instead, if I use a transaction, everything is fine and keeps working
I've noticed that when an exception is thrown inside a
newSuspendedTransaction
, the database connection is not given back to the pool. So, after some exceptions are thrown the pool runs out of connections.Instead, if I use a
transaction
, everything is fine and keeps workingIt seems something similar to #1105
Here's the code:
The text was updated successfully, but these errors were encountered: