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

   ## What changes were proposed in this pull request?
   
   Fetch bucket information in `ListMultipartUploadsHandler` only when needed 
for expected owner verification, and call `ClientProtocol#listMultipartUploads` 
directly. Add volume and bucket name validation to 
`RpcClient#listMultipartUploads` to preserve the checks previously performed by 
the bucket lookup.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16637
   
   ## How was this patch tested?
   
   - Added tests for bucket lookup counts, owner checks, pagination, errors and 
name validation. Without the production changes, 8 endpoint cases fail on extra 
bucket lookups and 2 client cases fail on missing name validation. With the 
changes, all 92 tests in `TestRpcClient`, `TestListMultipartUploads`, 
`TestPermissionCheck` and `TestBucketList` pass.
   - [Fork CI 
passed](https://github.com/rich7420/ozone/actions/runs/36472741824).
   - 10×10 flaky-test-check passed on Java 21 for [TestListMultipartUploads and 
TestPermissionCheck](https://github.com/rich7420/ozone/actions/runs/36472803996)
 and 
[TestRpcClient](https://github.com/rich7420/ozone/actions/runs/36472806885).
   


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