rich7420 opened a new pull request, #11374: URL: https://github.com/apache/ozone/pull/11374
## What changes were proposed in this pull request? Reuse the `OzoneBucket` fetched during expected bucket owner verification in `PutBucketLifecycleConfiguration`. Requests that pass verification currently fetch the same bucket again before constructing and setting the lifecycle configuration. Reusing it removes one `InfoBucket` RPC while retaining the existing bucket READ requirement, owner validation, bucket layout handling, 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-16649 ## How was this patch tested? - https://github.com/rich7420/ozone/actions/runs/36680261563/attempts/4 - [10×10 flaky-test-check passed](https://github.com/rich7420/ozone/actions/runs/36680345705) for `TestS3LifecycleConfigurationPut` 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]
