diff --git a/redisson/src/main/java/org/redisson/connection/ServiceManager.java b/redisson/src/main/java/org/redisson/connection/ServiceManager.java index a94cdbe47..d59602cc6 100644 --- a/redisson/src/main/java/org/redisson/connection/ServiceManager.java +++ b/redisson/src/main/java/org/redisson/connection/ServiceManager.java @@ -306,7 +306,10 @@ public class ServiceManager { public RedisNodeNotFoundException createNodeNotFoundException(NodeSource source) { RedisNodeNotFoundException ex; - if (source.getSlot() != null && source.getAddr() == null && source.getRedisClient() == null) { + if (cfg.isClusterConfig() + && source.getSlot() != null + && source.getAddr() == null + && source.getRedisClient() == null) { ex = new RedisNodeNotFoundException("Node for slot: " + source.getSlot() + " hasn't been discovered yet. Check cluster slots coverage using CLUSTER NODES command. Increase value of retryAttempts and/or retryInterval settings."); } else { ex = new RedisNodeNotFoundException("Node: " + source + " hasn't been discovered yet. Increase value of retryAttempts and/or retryInterval settings.");