Skip to content

Commit e0037ab

Browse files
committed
chore: add connectionClosedExplicitly message to logs
1 parent 832e871 commit e0037ab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ protected void invalidateCurrentConnection() {
613613

614614
protected void pickNewConnection() throws SQLException {
615615
if (this.isClosed && this.closedExplicitly) {
616-
LOGGER.fine(() -> Messages.get("Failover.transactionResolutionUnknownError"));
616+
LOGGER.fine(() -> Messages.get("Failover.connectionClosedExplicitly"));
617617
return;
618618
}
619619

wrapper/src/main/resources/aws_advanced_jdbc_wrapper_messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ ExecutionTimeConnectionPlugin.executionTime=Executed {0} in {1} nanos.
170170

171171
# Failover Connection Plugin
172172
Failover.transactionResolutionUnknownError=Transaction resolution unknown. Please re-configure session state if required and try restarting the transaction.
173+
Failover.connectionClosedExplicitly=Unable to failover, the connection has been explicitly closed.
173174
Failover.connectionChangedError=The active SQL connection has changed due to a connection failure. Please re-configure session state if required.
174175
Failover.exceptionConnectingToWriter=An exception occurred while trying to connect to the new writer ''{0}''.
175176
Failover.failoverReaderTimeout=The reader failover process was not able to establish a connection before timing out.

0 commit comments

Comments
 (0)