Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-541 Ozone Quota support.
  3. HDDS-6556

Update usedBytes only when commit key.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0
    • None

    Description

      As we disscussed in https://issues.apache.org/jira/browse/HDDS-5867.
      The quota we are currently implementing have a bug. When allocate block, we add usedBytes. If the key fails to write, the Clean Open Key Service subtracts the usedBytes. But the bucket may no longer exist when the open key is being deleted, or may have been deleted and re-created with the same name. This causes usedBytes update error.

      We can only update the usedByte when commit key. In this way, failed keys are not counted in the usedByte(we‘ll add service in the background to delete them). This is reasonable for the user. This is garbage data and belongs to the Ozone system. And the Ozone system itself cleans this data.

      Attachments

        Issue Links

          Activity

            People

              micahzhao mingchao zhao
              micahzhao mingchao zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: