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


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/MutableVolumeSet.java:
##########
@@ -482,7 +484,7 @@ public StorageLocationReport[] getStorageReport() {
             rootDir = volumeInfo.get().getRootDir();
             SpaceUsageSource usage = volumeInfo.get().getCurrentUsage();
             scmUsed = usage.getUsedSpace();
-            remaining = usage.getAvailable();
+            remaining = volume.getStorageState() == 
HddsVolume.VolumeState.READ_ONLY ? 0 : usage.getAvailable();

Review Comment:
   Will remaining "0" confuse the usage statistics on Recon and SCM UI?  Maybe 
we would consider including the READ only state in storage report. 



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