Skip to content

Commit

Permalink
Continue renewSlotCache if exception is encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
pcchan committed Apr 9, 2015
1 parent a041cf4 commit a27d241
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a27d241

Please sign in to comment.