Anurag-S1ngh opened a new pull request, #19248:
URL: https://github.com/apache/iceberg/pull/19248

   ## Summary
   
   - `S3FileIO.deleteFiles` grouped pending keys by bucket only. A full batch 
was sent with whichever prefix's client completed it, and the remainder was 
sent with the root client for `s3://<bucket>`, which matches no credential 
prefix. With vended credentials the root client has none, so remainder deletes 
failed, and full batches could mix keys from different prefixes.
   - Pending keys are now grouped by client and bucket. Each full batch and 
each remainder is deleted with the client selected for its paths.
   
   ## Changes
   
   - `S3FileIO.deleteFiles`: track a client to bucket to keys map and use the 
selected client for full and remainder batches.
   - Add `TestS3FileIOBulkDelete`, covering a full batch plus a remainder and a 
batch where keys from two prefixes share a bucket.
   
   ## Testing
   
   - `./gradlew :iceberg-aws:test --tests "org.apache.iceberg.aws.s3.*"` passes.
   - Both new tests fail without the change.
   
   Closes #18263
   


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