Russole commented on code in PR #11372:
URL: https://github.com/apache/ozone/pull/11372#discussion_r4145201478


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketLifecycleHandler.java:
##########
@@ -103,23 +106,25 @@ protected void 
deleteLifecycleConfiguration(S3RequestContext context, String buc
     }
   }
 
-  private void verifyBucketOwner(S3RequestContext context, String bucketName) 
throws OS3Exception {
+  private OzoneBucket verifyBucketOwner(S3RequestContext context, String 
bucketName) throws OS3Exception {

Review Comment:
   Could we also reuse the verified bucket in the PUT and GET lifecycle paths 
to avoid the second `getBucket()` call?



-- 
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]

Reply via email to