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

fix(server): Set Server.pendingSnapshot back to nil after saving a snapshot fails. #1506

Closed
wants to merge 1 commit into from

Conversation

jstamerj
Copy link

When a snapshot fails to save, Sever.pendingSnapshot is not set to nil (like it is after a snapshot is successfully saved). This causes all future calls to TakeSnapshot() to fail with an error "Snapshot: Last snapshot is not finished."

Fixes #1496

…apshot fails.

When a snapshot fails to save, Sever.pendingSnapshot is not set to nil (like it is after a snapshot is successfully saved).  This causes all future calls to TakeSnapshot() to fail with an error "Snapshot: Last snapshot is not finished."

Fixes etcd-io#1496
@jstamerj jstamerj closed this Oct 30, 2014
@jstamerj jstamerj deleted the jstamerj/fixSnapshot branch October 30, 2014 00:15
@jstamerj jstamerj restored the jstamerj/fixSnapshot branch October 30, 2014 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

etcd gets into bad state -- snapshots fail until etcd process is restarted
1 participant