lokeshj1703 commented on code in PR #3701:
URL: https://github.com/apache/ozone/pull/3701#discussion_r956942972


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/client/ScmClient.java:
##########
@@ -391,4 +391,47 @@ StatusAndMessages finalizeScmUpgrade(String 
upgradeClientID)
   StatusAndMessages queryUpgradeFinalizationProgress(
       String upgradeClientID, boolean force, boolean readonly)
       throws IOException;
+
+  /**
+   * Get DiskBalancer report.
+   * REPORT shows the current volume density of datanodes.
+   * @param count top datanodes that need balancing
+   * @return List of DatanodeDiskBalancerInfo.
+   * @throws IOException
+   */
+  List<HddsProtos.DatanodeDiskBalancerInfoProto> getDiskBalancerReport(
+      int count) throws IOException;

Review Comment:
   I mean if user wants a different sorting algorithm for these datanodes like 
the amount of unbalanced data etc. So in such a case we should return dn with 
highest unbalanced data. I am suggesting different options which can be 
provided as input like --sortBy UNBALANCED_DATA etc.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to