Skip to content

Commit

Permalink
Fixed - DNS change isn't detected in replicated mode #4437
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Koksharov committed Sep 30, 2022
1 parent a5502b6 commit aadb6cf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -171,7 +171,7 @@ private void checkNode(AsyncCountDownLatch latch, RedisURI uri, ReplicatedServer

RedisConnection connection = connectionFuture.toCompletableFuture().join();
if (!RedisURI.compare(connection.getRedisClient().getAddr(), ip)) {
closeNodeConnection(connection);
disconnectNode(uri);
log.info("Hostname: " + uri + " has changed IP from: "
+ connection.getRedisClient().getAddr() + " to " + ip);
return CompletableFuture.<Map<String, String>>completedFuture(null);
Expand Down

0 comments on commit aadb6cf

Please sign in to comment.