rajinisivaram commented on code in PR #13350: URL: https://github.com/apache/kafka/pull/13350#discussion_r1149063073
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java: ########## @@ -519,13 +641,14 @@ Map<String, List<TopicPartition>> build() { return assignment; } - // Reassign previously owned partitions, up to the expected number of partitions per consumer private void assignOwnedPartitions() { for (Map.Entry<String, List<TopicPartition>> consumerEntry : currentAssignment.entrySet()) { String consumer = consumerEntry.getKey(); - List<TopicPartition> ownedPartitions = consumerEntry.getValue(); + List<TopicPartition> ownedPartitions = consumerEntry.getValue().stream() + .filter(tp -> !rackInfo.racksMismatch(consumer, tp)) Review Comment: Yes, that is correct. -- 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