Skip to content

Commit

Permalink
fix[connector]: prevent flag reconnectUsesNewConnection in cluster sc…
Browse files Browse the repository at this point in the history
…enarios
  • Loading branch information
VonDerBeck committed Feb 15, 2024
1 parent 88402fb commit 3b34f51
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ protected void start() {
redisConnection.close();
}
if (reconnectUsesNewConnection) {
// take care to not close the whole connection pool in case of failing cluster connections
LOGGER.warn("Parameter 'reconnectUsesNewConnection' has no effect when using RedisClusterClient.");
reconnectUsesNewConnection = false;
}
} else {
// if we're not connected to a cluster we eventually handle reconnects ourselves
Expand Down

0 comments on commit 3b34f51

Please sign in to comment.