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
The connections are not being closed when the autoCommit is set to false.
Is there a reason why we have this call Util.closeQuietlyIfAutoCommit(state.con); in a QuerySelectOnSubscribe ?
privatestaticvoidcloseQuietly(Statestate) {
// ensure only closed once and avoid race conditionsif (state.closed.compareAndSet(false, true)) {
// set the state fields to null after closing for garbage// collection purposeslog.debug("closing rs");
Util.closeQuietly(state.rs);
log.debug("closing ps");
Util.closeQuietly(state.ps);
log.debug("closing con");
Util.closeQuietlyIfAutoCommit(state.con);
log.debug("closed");
}
}
the problem with this config, is im getting a lot of active connections in my pool, and i end up with Connection is not available, request timed out after 30001ms.
And may i suggest to log the result of the operations too in debug.
The text was updated successfully, but these errors were encountered:
The connections are not being closed when the autoCommit is set to false.
Is there a reason why we have this call
Util.closeQuietlyIfAutoCommit(state.con);
in aQuerySelectOnSubscribe
?the problem with this config, is im getting a lot of active connections in my pool, and i end up with Connection is not available, request timed out after 30001ms.
And may i suggest to log the result of the operations too in debug.
The text was updated successfully, but these errors were encountered: