sodonnel opened a new pull request, #5324: URL: https://github.com/apache/ozone/pull/5324
## What changes were proposed in this pull request? Prior to [HDDS-5032](https://issues.apache.org/jira/browse/HDDS-5032), if the same container is found on multiple volumes, then the second volume to load it fails the entire volume. After [HDDS-5032](https://issues.apache.org/jira/browse/HDDS-5032), the exception is caught so the volume doesn't fail, but depending on which container is loaded faster, either one of the replicas could win. Over several restarts, the container on either volume could be the one loaded, potentially resulting in inconsistencies. This change catches the error, and then removes one of the duplicates based on the BCSID. The container with the largest BCSID is the one kept, while the other is removed. This will free the disk space taken by the duplicate container, and also avoid the chance of a different copy being loaded on each restart. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-9322 ## How was this patch tested? Modified a test to have duplicated containers and ensure they are handled based on BCSID. -- 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]
