rakeshadr opened a new pull request, #3284:
URL: https://github.com/apache/ozone/pull/3284
## What changes were proposed in this pull request?
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)
Table fileTable = metadataManager.getKeyTable(
getBucketLayout(metadataManager, parentInfo.getVolumeName(),
parentInfo.getBucketName()));
Fix: Easy to use directly metadataManager#getFileTable() wherever its
possible.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6564
## How was this patch tested?
added test case
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]