Duplicate connection in try with resources clause caused close() being called twice on each connection.
pull/1442/merge
Björn Darri Sigurðsson committed by Leo Bayer
parent b40e684208
commit 3990d259a1

@ -133,7 +133,7 @@ abstract class PoolBase
logger.debug("{} - Closing connection {}: {}", poolName, connection, closureReason);
// continue with the close even if setNetworkTimeout() throws
try (connection; connection) {
try (connection) {
if (!connection.isClosed())
setNetworkTimeout(connection, SECONDS.toMillis(15));
} catch (SQLException e) {

Loading…
Cancel
Save