sumitagrawl commented on code in PR #7830:
URL: https://github.com/apache/ozone/pull/7830#discussion_r1954463870
##########
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:
This needs proto change to include volume state in report. Can be done via
another JIRA to include volume status also.
--
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]