ashishkumar50 commented on code in PR #10054:
URL: https://github.com/apache/ozone/pull/10054#discussion_r3186276036
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/AvailableSpaceFilter.java:
##########
@@ -39,9 +42,25 @@ public AvailableSpaceFilter(long requiredSpace) {
@Override
public boolean test(HddsVolume vol) {
StorageLocationReport report = vol.getReport();
- long available = report.getUsableSpace();
+ long capacity = report.getCapacity();
+ long spareAtHardLimit = vol.getFreeSpaceToSpare(capacity);
Review Comment:
Yes it will off soft limit space. Added a test for it.
Updated `long availableAtReportedSpare = report.getUsableSpace();`
--
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]