rich7420 opened a new pull request, #11372:
URL: https://github.com/apache/ozone/pull/11372

   ## What changes were proposed in this pull request?
   
   Reuse the `OzoneBucket` fetched during expected bucket owner verification in 
`DeleteBucketLifecycle`. Requests that pass verification currently fetch the 
same bucket again before deleting the lifecycle configuration. Reusing it 
removes one `InfoBucket` RPC while retaining the existing bucket READ 
requirement, owner validation, and error handling. Requests without a non-empty 
expected-owner header still perform the existing lookup.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16650
   
   ## How was this patch tested?
   
   - [Fork CI 
passed](https://github.com/rich7420/ozone/actions/runs/36680265874/attempts/2).
   - [10×10 flaky-test-check 
passed](https://github.com/rich7420/ozone/actions/runs/36680348965) for 
`TestS3LifecycleConfigurationDelete` on Java 21.
   


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