errose28 commented on code in PR #8523:
URL: https://github.com/apache/ozone/pull/8523#discussion_r2248106076


##########
hadoop-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/ListInfoSubcommand.java:
##########
@@ -155,7 +149,7 @@ private List<DatanodeWithAttributes> getAllNodes(ScmClient 
scmClient)
               long capacity = p.getCapacity();
               long used = capacity - p.getRemaining();
               double percentUsed = (capacity > 0) ? (used * 100.0) / capacity 
: 0.0;
-              return new DatanodeWithAttributes(
+              return new BasicDatanodeInfoJson(

Review Comment:
   Thanks for updating this but I just realized I made a mistake here 😄 There's 
filtering by node state that happens with the return value of this method. So 
we can't limit until we have pulled out the relevant nodes or we may miss 
entries. Let's keep the original, sorry for the confusion. Maybe we can 
optimize this later.



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