lib/redis_failover/client.rb in redis_failover-1.0.1 vs lib/redis_failover/client.rb in redis_failover-1.0.2

- old
+ new

@@ -315,10 +315,10 @@ data = @zk.get(redis_nodes_path, :watch => true).first nodes = symbolize_keys(decode(data)) logger.debug("Fetched nodes: #{nodes.inspect}") nodes - rescue Zookeeper::Exceptions::InheritedConnectionError => ex + rescue Zookeeper::Exceptions::InheritedConnectionError, ZK::Exceptions::InterruptedSession => ex logger.debug { "Caught #{ex.class} '#{ex.message}' - reopening ZK client" } @zk.reopen retry rescue *ZK_ERRORS => ex logger.warn { "Caught #{ex.class} '#{ex.message}' - retrying" }