You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Rakesh Radhakrishnan (Jira)" <ji...@apache.org> on 2022/04/07 07:06:00 UTC
[jira] [Created] (HDDS-6564) DirectoryDeletionService should use getFileTable to handle bucket delete
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org