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

standby server: save Running info correctly #881

Merged
merged 1 commit into from
Jul 25, 2014
Merged

Conversation

yichengq
Copy link
Contributor

@yichengq yichengq commented Jul 8, 2014

Running should be true when Start, and set to false when switching to
the other mode.

The original code keeps Running as true if server was standby mode before.
The bug causes the following problem:
If a node switched to peer mode from standby mode, it will goes into standby mode when restart. If all nodes have the same case, full down/up will fail.

Running should be true when Start, and set to false when switching to
the other mode.
@philips
Copy link
Contributor

philips commented Jul 8, 2014

@unihorn Can there be a test that covers this?

@philips
Copy link
Contributor

philips commented Jul 8, 2014

lgtm

@klizhentas
Copy link

Looking forward for this PR as we encounter this in prod from time to time :-)

yichengq added a commit that referenced this pull request Jul 25, 2014
standby server: save Running info correctly
@yichengq yichengq merged commit a884f2a into etcd-io:master Jul 25, 2014
@yichengq yichengq deleted the 111 branch December 7, 2014 17:20
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.

3 participants