Russole opened a new pull request, #9568: URL: https://github.com/apache/ozone/pull/9568
## What changes were proposed in this pull request? * Moved the `hasEnoughSpace` check into the container allocation path to centralize and ensure space validation during container creation. * Updated unit tests to explicitly control the behavior of `hasEnoughSpace` (true or false) based on test scenarios, ensuring test intent remains clear and unaffected by the refactored allocation logic. * Cleaned up duplicate space checks in the allocation flow while preserving existing behavior for container selection and creation. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13338 ## How was this patch tested? - All existing GitHub CI checks passed. -- 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]
