sjhajharia commented on code in PR #20348: URL: https://github.com/apache/kafka/pull/20348#discussion_r2291760939
########## raft/src/main/java/org/apache/kafka/raft/internals/EpochElection.java: ########## @@ -28,7 +28,7 @@ * Tracks the votes cast by voters in an election held by a Nominee. */ public class EpochElection { Review Comment: I don't think we can do so here. Right now EpochElection holds mutable state `voterStates` and the methods like recordVote(...) mutate it (voterState.setState(...)). As far as I know, record only supports final members. -- 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