jojochuang commented on code in PR #8315:
URL: https://github.com/apache/ozone/pull/8315#discussion_r2069670123
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/RootEndpoint.java:
##########
@@ -61,6 +62,9 @@ public Response get()
throw e;
}
+ OzoneVolume volume = getVolume();
Review Comment:
getVolume() is an RPC to Ozone Manager, and listS3Buckets(null) (above)
internally invokes getVolume().
So this is redundant and put extra latency/overhead at OM. Can we refactor
the code so getVolume() is called only once.
--
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]