Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7479 Investigate -100% Volume and bucket quotas working
  3. HDDS-8016

Deleting a FSO directory does not udpate bucket usedBytes and usedNamespace

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      We found that after deleting directories, bucket usedBytes and usedNamespace are not updated properly, meaning that even if deleting all the files, usedBytes and usedNamespace don't drop to zero.

      Seems easy to reproduce:

      hdfs dfs -mkdir ofs://ozone1/vol1/bucket1/a
      hdfs dfs -put /etc/hosts ofs://ozone1/vol1/bucket1/a/
      ozone sh bucket info o3://ozone1/vol1/bucket1
      hdfs dfs -rm -r -skipTrash ofs://ozone1/vol1/bucket1/a
      ozone sh bucket info o3://ozone1/vol1/bucket1
      

      Attachments

        Issue Links

          Activity

            People

              sumitagrawl Sumit Agrawal
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: