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

   ## What changes were proposed in this pull request?
   
   CopyObject fetches source key details to validate the request, then fetches 
them again when opening the input stream. Open the stream from the existing 
`OzoneKeyDetails` instead, avoiding a second `GetKeyInfo` RPC in both ordinary 
and datastream copies.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16658
   
   ## How was this patch tested?
   
   - S3 Gateway unit tests: 1,018 passed.
   - [TestObjectPut and TestUploadWithStream 
10×10](https://github.com/rich7420/ozone/actions/runs/36986320039) passed.
   - Real HTTP/OM RPC tracing on master `ae281be314`, before/after applying the 
patch: `GetKeyInfo` decreased from 2 to 1 per CopyObject for ordinary and 
datastream copies. Both cases were repeated, and copied contents were verified.
   - [Fork CI](https://github.com/rich7420/ozone/actions/runs/36986273287) 
failed in the existing client container-close assertion and snapshot 
backup-pruning timeout; these native-client tests do not execute the changed S3 
Gateway code. Failed jobs are being rerun.
   
   Generated-by: Codex (GPT-6)
   


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