jsancio commented on PR #16900:
URL: https://github.com/apache/kafka/pull/16900#issuecomment-2297716368

    > I'm sure I'm missing something, but why can't Raft send an empty 
LeaderAndEpoch when it transitions to resigned?
   
   I don't want raft to forget or expose forgotten state. At one point raft 
knew that the leader was Y at epoch X. Later for the same epoch raft would 
report that the leader is unknown for epoch X. I don't want for raft to expose 
that it forgot that the leader was Y at epoch X. You can thinking of this as 
lost of data. Raft needs to stay at epoch X because it is resigning. The 
expectation is that some other voter will increase the epoch to X + 1 and try 
to win the election.
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to