ryanlecompte / redis_failover

redis_failover is a ZooKeeper-based automatic master/slave failover solution for Ruby.
http://github.com/ryanlecompte/redis_failover
MIT License
539 stars 65 forks source link

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

Closed mauricio closed 11 years ago

mauricio commented 11 years ago

When an exception that includes ZK::Exceptions::InterruptedSession happens (as Zookeeper::Exceptions::NotConnected) you need to reopen the client instead of just retrying since retrying on a closed connection will just make it happen again.

ryanlecompte commented 11 years ago

Awesome, thanks! You're totally right.

ryanlecompte commented 11 years ago

Just released redis_failover 1.0.2 with these changes. Thanks!