jsancio commented on a change in pull request #10705:
URL: https://github.com/apache/kafka/pull/10705#discussion_r633935466



##########
File path: raft/src/main/java/org/apache/kafka/raft/RaftClient.java
##########
@@ -56,24 +57,17 @@
         void handleSnapshot(SnapshotReader<T> reader);
 
         /**

Review comment:
       > Or you could choose to burn an epoch like this...
   
   This is not how leader election works in Raft. When a leader fails or steps 
down an epoch starts without a leader, only candidate(s). If leader election 
succeeds for a given epoch only one leader is guaranteed to be elected for that 
epoch and will remain leader for the duration of that epoch.




-- 
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.

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


Reply via email to