sumitagrawl opened a new pull request, #8573: URL: https://github.com/apache/ozone/pull/8573
## What changes were proposed in this pull request? metrics and logs are added during volume check for below cases: 1. volume space is insuffiecient, i.e. lesser than min.free.space OR sum(min.free.space + committed bytes) 2. volume reserved usages consumption is more than configured value Metrics added: - availableSpaceInsufficient - reservedCrossesLimit ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-12927 ## How was this patch tested? - Unit test case added Sample Logs as generated: ``` WARN volume.HddsVolume (HddsVolume.java:checkVolumeUsages(362)) - Volume /var/folders/ll/3dtzmk1j4693_v1x7_msvfqc0000gn/T/junit-1914764595138761718/hdds has insufficient space for on-going container write operation. Committed: 100, Available: 100, Free space to spare: 10 WARN volume.VolumeUsage (VolumeUsage.java:isReservedUsagesInRange(246)) - Reserved usages 100 is higher than actual allocated reserved space 200. WARN volume.HddsVolume (HddsVolume.java:checkVolumeUsages(371)) - Volume /var/folders/ll/3dtzmk1j4693_v1x7_msvfqc0000gn/T/junit-1914764595138761718/hdds reserved usages is higher than actual allocated reserved space. ``` -- 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]
