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

Switches to reliable Raft leader notifications. #2911

Merged
merged 1 commit into from
Apr 13, 2017
Merged

Conversation

slackpad
Copy link
Contributor

This fixes #2896 by switching to the notifyCh instead of the leaderCh, so we get all up/down events from Raft regarding leadership. We also wait for the old leader loop to shut down before we ever consider starting a new one, which keeps that single-threaded and fixes the panic in that issue.

This fixes #2896 by switching to the `notifyCh` instead of the `leaderCh`,
so we get all up/down events from Raft regarding leadership. We also wait
for the old leader loop to shut down before we ever consider starting a
new one, which keeps that single-threaded and fixes the panic in that issue.
@slackpad slackpad requested review from armon and kyhavlov and removed request for armon April 13, 2017 21:21
@slackpad
Copy link
Contributor Author

/cc @armon as FYI - this was the change we were chatting about

@armon
Copy link
Member

armon commented Apr 13, 2017

@slackpad LGTM!
@dadgar Can you copy the wait group logic to ensure that same safety for Nomad?

@slackpad slackpad merged commit c59f8fb into master Apr 13, 2017
@slackpad slackpad deleted the serial-leader-loop branch April 13, 2017 21:43
@dadgar
Copy link
Contributor

dadgar commented Apr 17, 2017

@armon Yeah this is tracked for 0.6.0

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.

Panic in leader loop when stopping autopilot
3 participants