F64116045 commented on code in PR #11242:
URL: https://github.com/apache/ozone/pull/11242#discussion_r4028829055
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectAttributesHandler.java:
##########
@@ -137,8 +146,12 @@ Response handleGetRequest(ObjectRequestContext context,
String keyPath)
throw ex;
}
+ boolean directoryBucketLayout =
+ context.getBucket().getBucketLayout().isFileSystemOptimized();
Review Comment:
Thanks @Gargi-jais11.
I wonder if we can call `context.getBucket()` only when `ObjectParts` is
requested.
Right now every `GetObjectAttributes` request makes an extra call to OM for
the bucket layout, even though only `ObjectParts` needs it?
--
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]