chia7712 commented on code in PR #20319:
URL: https://github.com/apache/kafka/pull/20319#discussion_r2294450811


##########
tools/src/main/java/org/apache/kafka/tools/reassign/ReassignPartitionsCommand.java:
##########
@@ -566,10 +566,11 @@ public static Entry<Map<TopicPartition, List<Integer>>, 
Map<TopicPartition, List
         List<String> topicsToReassign = t0.getValue();
 
         Map<TopicPartition, List<Integer>> currentAssignments = 
getReplicaAssignmentForTopics(adminClient, topicsToReassign);
+        Map<TopicPartitionReplica, String> currentReplicaLogDirs = 
getReplicaToLogDir(adminClient, currentAssignments);
         List<UsableBroker> usableBrokers = getBrokerMetadata(adminClient, 
brokersToReassign, enableRackAwareness);
         Map<TopicPartition, List<Integer>> proposedAssignments = 
calculateAssignment(currentAssignments, usableBrokers);
         System.out.printf("Current partition replica assignment%n%s%n%n",
-            formatAsReassignmentJson(currentAssignments, Map.of()));
+            formatAsReassignmentJson(currentAssignments, 
currentReplicaLogDirs));
         System.out.printf("Proposed partition reassignment 
configuration%n%s%n",
             formatAsReassignmentJson(proposedAssignments, Map.of()));

Review Comment:
   open https://issues.apache.org/jira/browse/KAFKA-19637 as follow-up to make 
the assignment include directories



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