etcd/raft: How does leader node discard data that is rejected by most followers. #18364
Unanswered
yongguangl
asked this question in
Q&A
Replies: 1 comment
-
When a proposal/log isn't accepted by the quorum number of members (including the leader itself), then the log isn't committed yet. It will be eventually committed once it's replicated to majority members, or overwritten by a new leader. Recommend to read the raft paper. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
In the raftexample example, if the majority of followers reject the leader's request, how does the leader node discard this data?
I want to submit a write request to the leader node. When the follower node finds that the data does not meet its expectations, it will reject the leader's request. When the majority of nodes reject the request, the data will not be written and discarded.
I set the follower MsgAppResp Messages[i].Reject = true, however, it seems that the leader will keep sending retry requests and cannot discard this data.
How should I solve this problem, thank you!
log
Beta Was this translation helpful? Give feedback.
All reactions