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

Trash checkpoints are not getting deleted from multiple buckets

    XMLWordPrintableJSON

Details

    Description

      Trash checkpoints are not getting deleted from all buckets from which keys are deleted. Deletion occurs only in selective bucket/s.

      In the below exception ,notice that the bucket and volume are different in the Exception stacktrace and the first message.

      5:03:00.019 PMERRORTrashPolicyOzoneUnable to checkpoint:/vol-test1-1613316962/buck-test1-1613316962/.Trash/hrt_qa
       FILE_NOT_FOUND org.apache.hadoop.ozone.om.exceptions.OMException: Unable to get file status: volume: vol2 bucket: buck2 key: .Trash/hrt_qa/210214153900
       at org.apache.hadoop.ozone.om.KeyManagerImpl.getOzoneFileStatus(KeyManagerImpl.java:1834)
       at org.apache.hadoop.ozone.om.KeyManagerImpl.getFileStatus(KeyManagerImpl.java:1775)
       at org.apache.hadoop.ozone.om.KeyManagerImpl.getFileStatus(KeyManagerImpl.java:1753)
       at org.apache.hadoop.ozone.om.TrashOzoneFileSystem.getFileStatus(TrashOzoneFileSystem.java:221)
       at org.apache.hadoop.ozone.om.TrashOzoneFileSystem$OzoneListingIterator.<init>(TrashOzoneFileSystem.java:298)
       at org.apache.hadoop.ozone.om.TrashOzoneFileSystem$DeleteIterator.<init>(TrashOzoneFileSystem.java:441)
       at org.apache.hadoop.ozone.om.TrashOzoneFileSystem.delete(TrashOzoneFileSystem.java:163)
       at org.apache.hadoop.ozone.om.TrashPolicyOzone.deleteCheckpoint(TrashPolicyOzone.java:269)
       at org.apache.hadoop.ozone.om.TrashPolicyOzone.access$900(TrashPolicyOzone.java:55)
       at org.apache.hadoop.ozone.om.TrashPolicyOzone$Emptier.lambda$run$0(TrashPolicyOzone.java:177)
       at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.base/java.lang.Thread.run(Thread.java:834)

      Attachments

        Issue Links

          Activity

            People

              sadanand_shenoy Sadanand Shenoy
              sadanand_shenoy Sadanand Shenoy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: