Open kevinchan-rl opened 2 months ago
potentially a duplicate of https://github.com/brettwooldridge/HikariCP/issues/2144
potentially a duplicate of #2144
It's a duplicate and should be fixed at PostgreSQL JDBC Driver side, see https://github.com/pgjdbc/pgjdbc/issues/3005
Hi,
We noticed our connection pool becomes unusable after
maxLifetime
has been reached with runtime exceptionPSQLException: Cannot change transaction isolation level in the middle of a transaction
when trying to set the isolation level the first time after getting the connection from the datasource. We are using exposed 0.51 in kotlin.We have
autoCommit=false
and default schema set on the hikari datasource.Attached are the postgres logs for when
autoCommit=false
andautoCommit=true
and you can see the connection init for both the first time and whenmaxLifetime
is reached. Notice that the transaction is left open whenautoCommit=false
whenmaxLifetime
is reached.