Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ public Connection connect(
}
}

LOGGER.finest(() -> "Connecting to " + urlBuilder);
LOGGER.finest(() -> PropertyUtils.logProperties(props, "Connecting with properties: \n"));

LOGGER.finest(() -> "Connecting to " + urlBuilder
+ PropertyUtils.logProperties(props, "\nwith properties: \n"));
return this.driver.connect(urlBuilder.toString(), props);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,11 @@ public ReaderFailoverResult call() {
LOGGER.fine(
() -> Messages.get(
"ClusterAwareReaderFailoverHandler.attemptingReaderConnection",
new Object[] {this.newHost.getUrl()}));
new Object[] {this.newHost.getUrl(), initialConnectionProps}));

try {
final Connection conn = pluginService.forceConnect(this.newHost, initialConnectionProps);
final Properties copy = new Properties(initialConnectionProps);
final Connection conn = pluginService.forceConnect(this.newHost, copy);
pluginService.setAvailability(this.newHost.asAliases(), HostAvailability.AVAILABLE);
LOGGER.fine(
() -> Messages.get(
Expand Down
2 changes: 1 addition & 1 deletion wrapper/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ AwsWrapperDataSource.missingDriver=Can't find a suitable driver for ''{0}''

# Cluster Aware Reader Failover Handler
ClusterAwareReaderFailoverHandler.interruptedThread=Thread was interrupted.
ClusterAwareReaderFailoverHandler.attemptingReaderConnection=Trying to connect to reader: ''{0}''
ClusterAwareReaderFailoverHandler.attemptingReaderConnection=Trying to connect to reader: ''{0}'', with properties ''{1}''
ClusterAwareReaderFailoverHandler.successfulReaderConnection=Connected to reader: ''{0}''
ClusterAwareReaderFailoverHandler.failedReaderConnection=Failed to connect to reader: ''{0}''
ClusterAwareReaderFailoverHandler.invalidTopology=''{0}'' was called with an invalid (null or empty) topology.
Expand Down