AndrewJSchofield commented on code in PR #19142: URL: https://github.com/apache/kafka/pull/19142#discussion_r1984855066
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleAssignor.java: ########## @@ -135,56 +148,68 @@ private GroupAssignment newAssignmentHomogeneous( List<TopicIdPartition> targetPartitions, Map<TopicIdPartition, List<String>> currentAssignment ) { - Map<TopicIdPartition, List<String>> newAssignment = new HashMap<>(); - - // Step 1: Hash member IDs to topic partitions. - memberHashAssignment(targetPartitions, groupSpec.memberIds(), newAssignment); + int numGroupMembers = groupSpec.memberIds().size(); + int numTargetPartitions = targetPartitions.size(); + int desiredAssignmentCount = (numTargetPartitions + numGroupMembers - 1) / numGroupMembers; Review Comment: Comment added. -- 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