Skip to content

RaftCluster not respecting handling of append/commit of custom IPersistentState #101

Answered by sakno
Arkensor asked this question in Q&A
Discussion options

You must be logged in to vote

I think the other replication logic could still work.

But it will work. The leader advances its state machine if the majority of nodes commits the entries.

Generally, in Raft the follower may respond only with two responses: true and false. true marks the follower as replicated and increases NextIndex while false indicates that the assumption about the state of the follower's log is wrong and NextIndex must be decrement and replication must be repeated on the next iteration of heartbeats. There is no third option. To be more precise, the third option is an unavailable member because it cannot respond with true nor false. What if the majority could not advance their position due to busy …

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Arkensor
Comment options

Answer selected by Arkensor
Comment options

You must be logged in to vote
1 reply
@sakno
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #100 on February 07, 2022 13:50.