captainzmc commented on a change in pull request #3178:
URL: https://github.com/apache/ozone/pull/3178#discussion_r825764459
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequestWithFSO.java
##########
@@ -122,7 +121,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager
ozoneManager,
validateBucketAndVolume(omMetadataManager, volumeName, bucketName);
String fileName = OzoneFSUtils.getFileName(keyName);
- omBucketInfo = omMetadataManager.getBucketTable().get(bucketKey);
+ omBucketInfo = getBucketInfo(omMetadataManager, volumeName, bucketName);
Review comment:
In OMKeyCommitRequest and other request(like OMKeyCreateRequest) we use
getBucketInfo to get omBucketInfo. I suspect the problem is that the objects
we get from getBucketTable are not the same as those we get from getBucketInfo.
--
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]