adoroszlai opened a new pull request, #7790:
URL: https://github.com/apache/ozone/pull/7790

   ## What changes were proposed in this pull request?
   
   Reduce the number of separate `getAvailable`, `getCapacity()`, 
`getScmUsed()` calls.  Instead, use `getCurrentUsage()` to fetch all 3 values 
together.  Goals:
   - reduce number of lock acquisitions when reaching `CachingSpaceUsageSource` 
and provide consistent view of the 3 values
   - reduce duplication, e.g. `volumeInfo.map(VolumeInfo::get...).orElse(...)`
   - reduce the interface exposed by various volume-related classes
   
   https://issues.apache.org/jira/browse/HDDS-12163
   
   ## How was this patch tested?
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/13086838004
   


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