kaijchen edited a comment on pull request #500:
URL: https://github.com/apache/ratis/pull/500#issuecomment-922251205
> it means even if a log has a smaller index, it can also be more up-to-date
than a log with a bigger index. that means a log with a shorter length can be
much more up-to-date than a log with a longer length. {index = 1, term = 100}
is more up-to-date than {index = 100, term = 1}.
Yes, you are correct.
The point is, have higher term doesn't necessarily mean have higher
lastLogTerm.
Candidate cannot append log entries by itself. Only leader can do that.
--
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]