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

   ## What changes were proposed in this pull request?
   
   S3 Gateway's DeleteObjects loads the bucket from OM (InfoBucket) before 
calling DeleteKeys. Like DeleteKey (HDDS-16701) and DeleteObjectTagging 
(HDDS-16703), it now passes a null volume through the S3 client delegation, so 
OM resolves the S3 volume within DeleteKeys. The bucket is loaded only for an 
expected-owner check, and its volume is then reused. Clients connected to an 
older OM keep the old lookups. Overlaps #12106 in `OmDeleteKeys` and 
`ClientProtocol#deleteKeys`; this PR will be updated if that one merges first.
   
   OM now checks bucket READ in `OMKeysDeleteRequest#preExecute` for these 
requests, which is the check InfoBucket used to do.
   
   Since DeleteKeys is now the first OM call, a failure that is not an 
`OMException`, such as an unreachable OM, returns 500 `InternalError` as the 
bucket lookup did, instead of 200 with an `ALL` error entry. Bucket-level 
failures like NoSuchBucket are now audited as a failed multi-delete.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16702
   
   ## How was this patch tested?
   
   Added tests in `TestObjectMultiDelete`, `TestOMKeysDeleteRequest`, 
`TestRpcClient`, `TestS3ClientProtocol`, 
`TestOzoneManagerProtocolClientSideTranslatorPB`, `TestSecureOzoneRpcClient` 
and `TestMultiTenantVolume`.
   Fork CI (pending): https://github.com/rich7420/ozone/actions/runs/45575252897
   


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