JacksonYao287 commented on pull request #500:
URL: https://github.com/apache/ratis/pull/500#issuecomment-924603342
> For example,
>
> If a candidate has `{term = 10, lastLogTerm = 5, lastLogIndex = 50}`,
> and a leader has `{term = 5, lastLogTerm = 5, lastLogIndex = 100}`,
> The leader should **reject the vote request and step down**.
yea,according to raft paper, a leader should step down and become follower
if it discovers any server with a higher term.
but, i am not quite clear that is it necessary if the discovered server has
a less up-to-date last logEntry? or will there be any problem if the leader
does not step down to follower when it finds the raft peer , with a higher
term, has a less up-to-date last logEntry?
i would like to hear your views. @szetszwo @kaijchen
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]