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
HikariCP has been running very stable for several weeks. Thanks for that.
Recently I added another Database. So I connect to 1 local database and to 1 remote database.
After some days I got this error:
java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:192)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:91)
He always tried to connect but it never was successfully. It failed for the remote database but the database was online all the time and it was also reachable (I am quite sure of this).
I have used HikariCP-1.4.0.jar from Maven for this and I created 2 different HikariCP instances in 2 classes. I just made a fast test with latest source code version. In this case one HikariCP establieshed a connection to the wrong database.
I hope you can fix this problem soon.
The text was updated successfully, but these errors were encountered:
HikariCP 2.0.1 definitely contains a fix for possible spurious timeouts under certain race conditions.
I am curious how you configured HikariCP in the case with two instances. HikariCP contains no static members (other than constants, etc.) so it is basically impossible for one pool to connect to the database specified by another pool.
HikariCP has been running very stable for several weeks. Thanks for that.
Recently I added another Database. So I connect to 1 local database and to 1 remote database.
After some days I got this error:
java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:192)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:91)
He always tried to connect but it never was successfully. It failed for the remote database but the database was online all the time and it was also reachable (I am quite sure of this).
I have used HikariCP-1.4.0.jar from Maven for this and I created 2 different HikariCP instances in 2 classes. I just made a fast test with latest source code version. In this case one HikariCP establieshed a connection to the wrong database.
I hope you can fix this problem soon.
The text was updated successfully, but these errors were encountered: