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
We noticed our connection pool becomes unusable after maxLifetime has been reached with runtime exception PSQLException: 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 and autoCommit=true and you can see the connection init for both the first time and when maxLifetime is reached. Notice that the transaction is left open when autoCommit=false when maxLifetime is reached.
The text was updated successfully, but these errors were encountered:
This is disturbing. I do suspect it is caused by the referenced pgjdbc issue. I'm not sure what the pool can do to compensate for this behavior; I don't want to automatically Connection.commit() every time the connection is returned to the pool or the schema is changed.
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.The text was updated successfully, but these errors were encountered: