sadanand48 commented on code in PR #6220:
URL: https://github.com/apache/ozone/pull/6220#discussion_r1490440541
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeySetTimesRequest.java:
##########
@@ -63,9 +64,10 @@ public OMRequest preExecute(OzoneManager ozoneManager)
throws IOException {
OMRequest request = super.preExecute(ozoneManager);
SetTimesRequest setTimesRequest = request.getSetTimesRequest();
String keyPath = setTimesRequest.getKeyArgs().getKeyName();
+ OmBucketInfo bucketInfo = ozoneManager.getBucketInfo(volumeName,
bucketName);
String normalizedKeyPath =
validateAndNormalizeKey(ozoneManager.getEnableFileSystemPaths(),
- keyPath, getBucketLayout());
+ keyPath, bucketInfo.getBucketLayout());
Review Comment:
Right BucketLayoutAwareOMKeyRequestFactory#createRequest gets the actual
bucket layout and passes to the request constructor, This is not needed. will
remove.
--
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]