Permalink
Browse files

Reopen client if an ZK::Exceptions::InterruptedSession occurs

  • Loading branch information...
1 parent 13157dd commit af6831f0da156dd331633534db4239f9121f4f66 @mauricio mauricio committed Feb 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/redis_failover/client.rb
@@ -317,7 +317,7 @@ def fetch_nodes
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

0 comments on commit af6831f

Please sign in to comment.