From a27d24197651b68290f55330426a7973ce43b85a Mon Sep 17 00:00:00 2001 From: Preston Chan Date: Thu, 9 Apr 2015 11:40:11 -0700 Subject: [PATCH] Continue renewSlotCache if exception is encountered --- .../java/redis/clients/jedis/JedisClusterConnectionHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/redis/clients/jedis/JedisClusterConnectionHandler.java b/src/main/java/redis/clients/jedis/JedisClusterConnectionHandler.java index 65ced432af..4cc8513f3c 100644 --- a/src/main/java/redis/clients/jedis/JedisClusterConnectionHandler.java +++ b/src/main/java/redis/clients/jedis/JedisClusterConnectionHandler.java @@ -72,6 +72,8 @@ public void renewSlotCache() { jedis = jp.getResource(); cache.discoverClusterSlots(jedis); break; + } catch (JedisConnectionException e) { + // try next nodes } finally { if (jedis != null) { jedis.close();