ahuang98 commented on code in PR #19854: URL: https://github.com/apache/kafka/pull/19854#discussion_r2232070935
########## raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java: ########## @@ -2570,7 +2570,7 @@ private void maybeTransition( transitionToUnattached(epoch, OptionalInt.empty()); } } else if ( - leaderId.isPresent() && + leaderId.isPresent() && (!quorum.hasLeader() || leaderEndpoints.size() > quorum.leaderEndpoints().size()) Review Comment: this is technically the correct indexing, going to just leave this in -- 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