ryanlecompte / redis_failover

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

passing in a zk and having it close before redis-failover can trigger an infinite loop #47

Open tobowers opened 11 years ago

tobowers commented 11 years ago

If you close a ZK client and then redis-failover goes to close the same zk client (because it was passed in)... you can trigger an infite loop of

2013-01-17 19:44:00 UTC RedisFailover 28592 WARN: Caught Zookeeper::Exceptions::NotConnected 'Zookeeper::Exceptions::NotConnected' - retrying