rreddy-22 commented on code in PR #13998:
URL: https://github.com/apache/kafka/pull/13998#discussion_r1270007353


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/consumer/TopicMetadata.java:
##########
@@ -40,23 +44,31 @@ public class TopicMetadata {
      */
     private final int numPartitions;
 
+    /**
+     * Map of every partition to a set of its rackIds.
+     * If the rack information is unavailable, pass an empty set.
+     */
+    private final Map<Integer, Set<String>> partitionRackInfo;

Review Comment:
   I also thought about it, but realized its not that necessary since 
PartitionMetadata is used to finally pass info to the assignor from 
targetAssignmentBuilder but TopicMetadata is used to get info from records till 
targetAssignmentBuilder. 



-- 
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

Reply via email to