Permalink
Browse files

Merge pull request #50 from officedrop/master

Reopen client if an ZK::Exceptions::InterruptedSession occurs
  • Loading branch information...
2 parents 13157dd + af6831f commit 0e86deafdc57566adf0ba64b3042df4f4e3c8c57 @ryanlecompte 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 0e86dea

Please sign in to comment.