JacksonYao287 commented on pull request #500:
URL: https://github.com/apache/ratis/pull/500#issuecomment-921588140
@szetszwo
> For the leader case, recognizeCandidate(candidateTerm) != null means the
candidateTerm is higher.
yea , it is
>However, decideVote(..) can still return false.
can you give a case that a candidate has a higher
term(recognizeCandidate(candidateTerm) != null), but decideVote(..) still
returns false? i think if candidate has a higher term,
`ServerState.compareLog(lastEntry, candidateLastEntry)` will definitely return
-1, so that decideVote(..) will return true!
please correct me if I miss something!
--
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]