[ 
https://issues.apache.org/jira/browse/HDDS-4825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sadanand Shenoy updated HDDS-4825:
----------------------------------
    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.
{code:java}
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){code}

  was:
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)


> Trash checkpoints are not getting deleted from multiple buckets
> ---------------------------------------------------------------
>
>                 Key: HDDS-4825
>                 URL: https://issues.apache.org/jira/browse/HDDS-4825
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Manager
>            Reporter: Sadanand Shenoy
>            Assignee: Sadanand Shenoy
>            Priority: Major
>              Labels: pull-request-available
>
> 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.
> {code:java}
> 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){code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to