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

   ## What changes were proposed in this pull request?
   
   CopyObject already retrieves the destination bucket in `handlePutRequest`, 
but the datastream path fetches it again before opening the destination stream. 
Pass the existing `OzoneBucket` through the copy helpers to avoid this second 
`InfoBucket` RPC.
   
   The initial bucket lookup, expected-owner verification, and destination 
write authorization are retained.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16659
   
   ## How was this patch tested?
   
   - Added a datastream copy test that verifies one destination bucket lookup, 
copied content, and ETag. Without the change, it fails because the bucket is 
fetched twice.
   - 127 related S3 Gateway tests passed; checkstyle passed.
   - [Fork CI](https://github.com/rich7420/ozone/actions/runs/36822739765) 
passed.
   - [TestObjectPut 10×10 
flaky-test-check](https://github.com/rich7420/ozone/actions/runs/36822793030) 
passed on Java 21.
   
   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