ivandika3 opened a new pull request, #6144:
URL: https://github.com/apache/ozone/pull/6144
## What changes were proposed in this pull request?
In OMDirectoryCreateRequest#getAllParentInfo, there is an unnecessary call
to add cache entry.
```java
omMetadataManager.getKeyTable(BucketLayout.DEFAULT).addCacheEntry(
omMetadataManager.getOzoneKey(
volumeName, bucketName, parentKeyInfo.getKeyName()),
parentKeyInfo, trxnLogIndex);
Although it is already added later in OMFileRequest#addKeyToTableCacheEntries
```
As the method name suggest, getAllParentInfo should just return the missing
parent info without doing any table operation.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10269
## How was this patch tested?
Existing tests.
--
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]