Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9322

Remove duplicate containers when loading volumes on a datanode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: