devmadhuu opened a new pull request, #11965: URL: https://github.com/apache/ozone/pull/11965
## What changes were proposed in this pull request? Disk Balancer must move containers only between volumes of the same storage type. The default choosing policy already follows this rule, but a custom `ContainerChoosingPolicy` can return volumes with different types, and the service currently executes that move without validation. This PR adds a check in DiskBalancerService before copying. For example, an SSD-to-DISK move selected by a custom policy is rejected, while an SSD-to-SSD move continues normally. Rejected moves leave the container unchanged and use existing cleanup to release reservations and clear task tracking. Successful same-type moves continue to preserve the replica’s recorded storage type. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17725 ## How was this patch tested? Added tests covering: - All six cross-type combinations among SSD, DISK and ARCHIVE. - Reservation and task cleanup after rejection. - Successful same-type moves for all three types, including replicas whose recorded type differs from the volume type. -- 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]
