Skip to content

storage: re-add retries for s3 delete_prefix#3364

Open
syphar wants to merge 1 commit into
rust-lang:mainfrom
syphar:retry-delete
Open

storage: re-add retries for s3 delete_prefix#3364
syphar wants to merge 1 commit into
rust-lang:mainfrom
syphar:retry-delete

Conversation

@syphar

@syphar syphar commented Jun 9, 2026

Copy link
Copy Markdown
Member

Digging into an error with the repackage command, I realized the DeleteObjects API only retries for errors in the main api call, and doesn't retry single failed objects on mixed responses (where some deletes fail, and some succeed).

See https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html#API_DeleteObjects_Examples

Here we add it back.

On top, I'm adding parallelization if we have to delete more than 1000 objects.

@syphar syphar self-assigned this Jun 9, 2026
@syphar syphar requested a review from a team as a code owner June 9, 2026 22:57
@github-actions github-actions Bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant