Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit af6831f0da156dd331633534db4239f9121f4f66 1 parent 13157dd
@mauricio mauricio authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/redis_failover/client.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.