Skip to content

Commit 4cc2f79

Browse files
committed
.
1 parent d2d7622 commit 4cc2f79

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ public <T, E extends Exception> T execute(
221221

222222
try {
223223
if (this.enableFailoverSetting
224+
&& !METHOD_ABORT.equals(methodName)
225+
&& !METHOD_CLOSE.equals(methodName)
224226
&& this.pluginService.getCurrentConnection() != null
225227
&& this.pluginService.getCurrentConnection().isClosed()) {
226228
this.pickNewConnection();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ public <T, E extends Exception> T execute(
192192

193193
try {
194194
if (this.pluginService.getCurrentConnection() != null
195+
&& !METHOD_ABORT.equals(methodName)
196+
&& !METHOD_CLOSE.equals(methodName)
195197
&& this.pluginService.getCurrentConnection().isClosed()) {
196198
this.pickNewConnection();
197199
}

0 commit comments

Comments
 (0)