Skip to content

Conversation

@Russole
Copy link
Contributor

@Russole Russole commented Dec 28, 2025

What changes were proposed in this pull request?

This is a follow-up to HDDS-12468 based on feedback in #8663 (comment).

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant