Repository navigation
perf(namespace): batch S3 manifest version deletes - #11732
Merged
Merged
Conversation
BubbleCal
marked this pull request as ready for review
December 2, 2026 07:57
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Xuanwo
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Directory namespace deletion waits on a separate storage request for every matching version manifest. The native S3 client supports multiple keys in a single DeleteObjects request.
Send at most 1,000 selected manifests per batch and check each key's outcome before submitting the next batch. Count acknowledged deletes, skip an already-absent key when the store identifies it, and fail on unaccounted outcomes. The batch uses the same table, branch, manifest path, and range selection as the existing operation.
Benchmark
Lower is better. Main 198202f and PR head 6b1d6ff ran on the same m7i.8xlarge client with four CPUs and a 4 GiB cgroup. A separate m7i.large VM in the same availability zone served a synthetic S3-compatible endpoint with 2 ms response delay per storage request. Two AB/BA trials per revision and connection state deleted 15,911 of 19,097 synthetic version manifests. Each trial made 21 list requests, and every remaining-key hash matched the expected set. These timings characterize the synthetic endpoint.
Validation