-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
raft: group gets stuck when leader is removed #11038
Comments
The expected behavior is what? The removed leader should stop heartbeating and keep silence? |
At the very least, the leader should immediately step down when it applies the configuration change. But I think even more so, we probably want to send an MsgTimeoutNow to one follower that has helped commit the config change (i.e. the one with the largest |
For etcd, we did this in the application layer I believe. |
Yes, this is handled in application layer. When leader is removed, during its stop process, it will transfer leadership to the longest connected voting member in cluster. Ref: Lines 1502 to 1503 in 9b29151
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
See the "document a problem" commit in #11037.
When a leader is removed via a conf change, it will retain its leadership indefinitely (continues to heartbeat followers). However, it does not accept incoming proposals.
The text was updated successfully, but these errors were encountered: