We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0135b commit 15db0d4Copy full SHA for 15db0d4
ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java
@@ -391,10 +391,13 @@ private void testConnection() {
391
} finally {
392
try {
393
if (conn != null) {
394
- if (!conn.getAutoCommit()) {
395
- conn.rollback();
+ try {
+ if (!conn.getAutoCommit()) {
396
+ conn.rollback();
397
+ }
398
+ } finally {
399
+ conn.closePooledConnection(false);
400
}
- conn.closePooledConnection(false);
401
402
} catch (SQLException ex) {
403
Log.warn("Can't close connection in checkDataSource!");
0 commit comments