Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
At present, even if the follower logs do not keep up with the progress of the cluster, the leader sends a single log entry which index is lastLogIndex directly when using appendEntries to the follower, which causes the wrong log entry to be transmitted. In fact, as long as the leader maintains the status of the followers, he can know which log should be transmitted, which greatly reduces the probability of transmitting wrong log entries.