ChenSammi commented on code in PR #9488:
URL: https://github.com/apache/ozone/pull/9488#discussion_r2618462278


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/StorageDistributionEndpoint.java:
##########
@@ -221,6 +221,7 @@ private long calculateCommittedSize() {
   private DatanodeStorageReport getStorageReport(DatanodeDetails datanode) {
     try {
       SCMNodeMetric nodeMetric = nodeManager.getNodeStat(datanode);
+      long reservedSpace = nodeManager.getTotalReserved(datanode);

Review Comment:
   Can we retrieve the reservedSpace from SCMNodeMetric too?  Retrieving all 
data from same source is better from both data consistent and performance 
point. 



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