anuragp010 commented on code in PR #11420:
URL: https://github.com/apache/ozone/pull/11420#discussion_r4345771734
##########
hadoop-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/storagepolicy/UsageInfoSubCommand.java:
##########
@@ -141,6 +142,7 @@ private List<DatanodeStorageTypeUsage>
buildDatanodeUsageList(List<DatanodeStora
datanodeUsage.add(new DatanodeStorageTypeUsage(dn, st));
}
}
+
datanodeUsage.sort(Comparator.comparing(DatanodeStorageTypeUsage::getStorageType));
Review Comment:
Resolving this as discussed because 1. Sorting is a stable sort (preserves
insertion order in case of a clash) 2. SCM side ordering is done based on the
`datanodeId` when `getNodes()` is called.
--
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]