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

Merged
merged 1 commit into from Feb 9, 2013

Projects

None yet

2 participants

@mauricio
Contributor
mauricio commented Feb 9, 2013

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
Owner

Awesome, thanks! You're totally right.

@ryanlecompte ryanlecompte merged commit 0e86dea into ryanlecompte:master Feb 9, 2013

1 check passed

default The Travis build passed
Details
@ryanlecompte
Owner

Just released redis_failover 1.0.2 with these changes. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment