-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Questions about the TestSplitVote2AA test #453
Comments
Until a subsequent raft node times out first, for example, in this test case, 2 nodes time out, and then it is elected. Shouldn’t they return to follower after giving each other votes before that? |
@liiuzq-xiaobai
In this test case, these two candidates share the same term, so No.0 won't happen. Also, no one wins the election so no one will send out heartbeats, therefore No.1 won't happen. As for No.2, however, it will happen in a few lines below your screenshot. Actually, I think what you've misunderstood here is how the test cases work. Try to look into the |
Here is the difference.
I have a question about the TestSplitVote2AA test case, why is it judged to be a candidate for the Splitvote case? I refer to the relevant details in the raft paper. When a splitvote situation occurs, the two raft nodes will vote for each other, and then convert themselves to Followers, so that the two will always be in the voting process.It's right?Thanks for your answer!
The text was updated successfully, but these errors were encountered: