Skip to content

Commit b010dd6

Browse files
karenc-bqsergiyvamz
authored andcommitted
fix: update closedExplicitly flag
1 parent 83a3de0 commit b010dd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wrapper/src/main/java/software/amazon/jdbc/plugin/failover2/FailoverConnectionPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ public <T, E extends Exception> T execute(
206206
}
207207

208208
if (canDirectExecute(methodName)) {
209-
if (JdbcMethod.CONNECTION_CLOSE.methodName.equals(methodName)) {
209+
if (JdbcMethod.CONNECTION_CLOSE.methodName.equals(methodName)
210+
|| JdbcMethod.CONNECTION_ABORT.methodName.equals(methodName)) {
210211
this.closedExplicitly = true;
211212
}
212213
return jdbcMethodFunc.call();

0 commit comments

Comments
 (0)