aloknnikhil commented on a change in pull request #9881: URL: https://github.com/apache/kafka/pull/9881#discussion_r557014940
########## File path: raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java ########## @@ -325,8 +341,30 @@ private void fireHandleResign() { } @Override - public void initialize() throws IOException { - quorum.initialize(new OffsetAndEpoch(log.endOffset().offset, log.lastFetchedEpoch())); + public void initialize(String quorumVoterStrings) throws IOException { + List<Node> quorumVoterNodes = quorumVoterStringsToNodes(quorumVoterStrings); + Set<Integer> quorumVoterIds = quorumVoterNodes.stream().map(Node::id).collect(Collectors.toSet()); Review comment: Ack. Addressing these in the changes. I am moving all computation of voter nodes/ids into RaftConfig. That should simplify this and avoid double work ---------------------------------------------------------------- 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