hevinhsu opened a new pull request, #8653: URL: https://github.com/apache/ozone/pull/8653
## What changes were proposed in this pull request? Reduce ```getBucket``` API invocations in S3 bucket owner verification. Please describe your PR in detail: * Replaced ```bucketName``` with ```OzoneBucket``` in affected APIs to perform bucket ownership verification directly without extra getBucket calls. * Introduced a new utility method hasBucketOwnershipVerificationConditions to determine whether verification is required based on request headers. * Used ```hasBucketOwnershipVerificationConditions``` to avoid invoking getBucket() for APIs that do not require bucket ownership validation, reducing overhead and unnecessary OM RPC calls. ## What is the link to the Apache JIRA [HDDS-13270](https://issues.apache.org/jira/browse/HDDS-13270) ## How was this patch tested? https://github.com/hevinhsu/ozone/actions/runs/15727321427 -- 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]
