Stephen O'Donnell created HDDS-9322:
---------------------------------------
Summary: Remove duplicate containers when loading volumes on a
datanode
Key: HDDS-9322
URL: https://issues.apache.org/jira/browse/HDDS-9322
Project: Apache Ozone
Issue Type: Bug
Reporter: Stephen O'Donnell
Assignee: Stephen O'Donnell
Prior to 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, 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]