F64116045 opened a new pull request, #11981: URL: https://github.com/apache/ozone/pull/11981
## What changes were proposed in this pull request? A datanode that already holds a replica is in usedNodes. If it has insufficient space, excludeFullNodes() can also add it to excludedNodes. SCMContainerPlacementRackAware adds both list sizes and counts that node twice, which can reject a replica repair request even when enough target nodes remain. For example, with three datanodes A, B and C: ```text usedNodes = [A, B] excludedNodes = [A] nodesRequired = 1 ``` The request is rejected even though C is available. The availability check now counts each datanode once across both lists. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17749 ## How was this patch tested? CI: https://github.com/F64116045/ozone/actions/runs/42395166846 -- 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]
