Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only change isHeld state on lock after successful Release #804

Closed

Conversation

Amit-PivotalLabs
Copy link

Signed-off-by: Michael Fraenkel [email protected]

@armon
Copy link
Member

armon commented Mar 20, 2015

This is purposely done early, as any partial failure means that we no longer know if we hold the lock. The code currently assumes that under any failure case we should drop leadership (or at least our belief in it). This change instead says that unless we are sure we are not the leader, continue to act as the leader. IMO our current behavior is safer and should be preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants