CalvinConfluent commented on code in PR #18148: URL: https://github.com/apache/kafka/pull/18148#discussion_r1911783684
########## metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java: ########## @@ -158,4 +158,9 @@ BrokersToIsrs.PartitionsOnReplicaIterator partitionsWithBrokerInElr(int brokerId } return new BrokersToIsrs.PartitionsOnReplicaIterator(topicMap, false); } + + @SuppressWarnings("unchecked") + BrokersToIsrs.PartitionsOnReplicaIterator partitionsWithElr() { + return new BrokersToIsrs.PartitionsOnReplicaIterator(elrMembers.values().stream().map(m -> (Map<Uuid, int[]>) m).iterator(), false); Review Comment: Refactored. -- 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