vamossagar12 commented on a change in pull request #9539: URL: https://github.com/apache/kafka/pull/9539#discussion_r523773938
########## File path: raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java ########## @@ -317,6 +317,9 @@ private void appendLeaderChangeMessage(LeaderState state, long currentTimeMs) { .map(follower -> new Voter().setVoterId(follower)) .collect(Collectors.toList()); + // Adding the leader to the voters as the protocol ensures that leader always votes for itself. + voters.add(new Voter().setVoterId(state.election().leaderId())); Review comment: hey @hachikuji, did you get a chance to review the changes? ---------------------------------------------------------------- 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