Rakesh Radhakrishnan created HDDS-6564:
------------------------------------------
Summary: DirectoryDeletionService should use getFileTable to
handle bucket delete
Key: HDDS-6564
URL: https://issues.apache.org/jira/browse/HDDS-6564
Project: Apache Ozone
Issue Type: Bug
Components: Ozone Manager
Reporter: Rakesh Radhakrishnan
Assignee: Rakesh Radhakrishnan
Case: Assume, if the bucket got deleted after marking it to
DirectoryDeletingService ("DDS"). Since bucket doesn't exist, DDS can't
determine BucketLayout. Below logic leads to NPE.
[KeyManagerImpl.java#L2342|https://github.com/apache/ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java#L2342]
{code:java}
Table fileTable = metadataManager.getKeyTable(
getBucketLayout(metadataManager, parentInfo.getVolumeName(),
parentInfo.getBucketName()));
{code}
+Fix:+ Easy to use directly {{metadataManager#getFileTable()}} wherever its
possible.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]