-
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
Question about the TestLeaderCommitEntry2AB #465
Comments
"it includes that index in future AE RPCs" means leader put the commit index in the later AppendEntries.
|
@Connor1996 Thanks for your reply! However, the inconsistency will cause test case |
I think it will work by letting the leader send an extra |
The annotation before function
TestLeaderCommitEntry2AB
(atraft_paper_test.go
) says that:I have no idea what "includes that index in future AE RPCs" means. Won't this cause inconsistency in
committed
among peers? For example, the last index for entries in the Leader's RaftLog is 12, and the leader knows through AppendEntriesResponce RPC from other peers that the entry with index 11 has been replicated in a majority of peers, then the leader assign 12 tocommitted
. However, the followers currently do not know the fact that index 12 is committed, so they keep the origincommitted
, and this origincommitted
is obviously less than 12. The inconsistency will disappear when followers receive new AE RPCs, while the inconsistency may recover when the leader receives AER RPCs again.So what is the actual mechanism for
committed
to communicate among peers?The text was updated successfully, but these errors were encountered: