-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
No leader using prevote feature #9586
Comments
In the real world, unless you're doing something tricky to manually trigger campaigns, time will pass before the two followers become pre-candidates. If you call It might make sense to set |
There is an open PR with this change: #8334. In #8334 (review) I suggested that part of CheckQuorum is redundant when PreVote is enabled and we may want to disable the |
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. |
We use Etcd raft lib in our system, and we not change the etcd raft lib code.
Today I test a scenario with prevote,the cluster will no leader.
The follow test case will be failed
I think in becomePreCandidate function should set r.lead to None
and then in Step() function, r.lead is set by becomePreCandidate function to None, inLease will be false. Otherwise, inLease will be true high possibility, the node will ignore MsgPreVote, and result in no node will get the quorum grant votes.
The text was updated successfully, but these errors were encountered: