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

Repair containers affected by incorrect used bytes and block count

    XMLWordPrintableJSON

Details

    Description

      HDDS-5359 shows that the bytes used and block count metadata of a container is tracked incorrectly. Empty containers with negative values in these fields will not be deleted per HDDS-4023 and will remain tracked by SCM unnecessarily.

      This Jira aims to add a config flag that when enabled will repair the metadata information in the datanodes on restart. Datanodes already iterate all their containers on startup, but the process is kept light to not slow down startup too much. Repairing these values will slow down datanode startup, since it requires writing to RocksDB (currently opened in readonly mode on startup) and iterating the block keys stored there. For this reason the plan is to put this behind a config flag.

      I have set the affected versions to 1.2.0 since it is after this release that HDDS-5359 was reported, but it is possible earlier releases are affected.

      Attachments

        Issue Links

          Activity

            People

              erose Ethan Rose
              erose Ethan Rose
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: