muralibasani commented on code in PR #22203:
URL: https://github.com/apache/kafka/pull/22203#discussion_r3213802802


##########
raft/src/main/java/org/apache/kafka/raft/LeaderState.java:
##########
@@ -687,7 +690,7 @@ public Optional<LogOffsetMetadata> highWatermark() {
 
     @Override
     public ElectionState election() {
-        return ElectionState.withElectedLeader(epoch, 
localVoterNode.voterKey().id(), Optional.empty(), voterStates.keySet());
+        return ElectionState.withElectedLeader(epoch, 
localVoterNode.voterKey().id(), votedKey, voterStates.keySet());

Review Comment:
   there seems to be no test for this returning of votedKey



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

Reply via email to