apoorvmittal10 commented on code in PR #18864: URL: https://github.com/apache/kafka/pull/18864#discussion_r1954315981
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleAssignor.java: ########## @@ -111,12 +292,41 @@ private Map<Uuid, Set<Integer>> computeTargetPartitions( ); } - Set<Integer> partitions = new HashSet<>(); for (int i = 0; i < numPartitions; i++) { - partitions.add(i); + targetPartitions.add(new TargetPartition(topicId, i)); } - targetPartitions.put(topicId, partitions); }); return targetPartitions; } + + static class TargetPartition { + Uuid topicId; + int partition; Review Comment: This can be a record class. -- 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