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

usedBytes and usedNamespace not updated for FSO buckets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 1.4.0
    • None
    • None

    Description

      I tried creating a few keys in the FSO bucket. And deleted the keys using, 

      hdfs dfs -rm -r -skipTrash ofs://ozone1/vol1/fso/*
      

      The usedNamespace and usedBytes are not updated after the deletion.

      # ozone sh bucket info vol1/fso
      {
        "metadata" : { },
        "volumeName" : "vol1",
        "name" : "fso",
        "storageType" : "DISK",
        "versioning" : false,
        "usedBytes" : 1200000,
        "usedNamespace" : 3,
        "creationTime" : "2022-08-18T17:38:26.185Z",
        "modificationTime" : "2022-08-18T17:38:26.185Z",
        "quotaInBytes" : -1,
        "quotaInNamespace" : -1,
        "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
        "owner" : "om",
        "link" : false
      }
      

      I also made sure DirectoryDeletingService and KeyDeletingService ran. This might cause inconsistency in bucket quota and bucket namespace quota.
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aswinshakil Aswin Shakil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: