Skip to content

perf(namespace): batch S3 manifest version deletes - #11732

Merged
Xuanwo merged 1 commit into
mainfrom
yang/ent-2281-batch-manifest-deletes
Dec 2, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
yang/ent-2281-batch-manifest-deletes

Conversation

@BubbleCal

@BubbleCal BubbleCal commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Scenario / metric Baseline This PR Benefit
Cold connection median wall time 48.48 s 0.344 s 141x speedup
Warm connection median wall time 48.84 s 0.360 s 136x speedup
Delete HTTP requests per call 15,911 requests 16 requests 994x fewer requests

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

  • The baseline issued 1,001 requests for 1,001 keys. The candidate issued two.
  • Managed Linux passed all 546 directory namespace tests, including partial key failure, request-wide failure, retry, and result accounting.
  • Managed Rust formatting and workspace Clippy passed.

@github-actions github-actions Bot added performance A-namespace Namespace impls labels Dec 2, 2026
@BubbleCal
BubbleCal marked this pull request as ready for review December 2, 2026 07:57

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The bounded native S3 batches address the per-manifest round trips without changing manifest selection. No blocking issues found.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Dec 2, 2026
@Xuanwo
Xuanwo merged commit ce8bde0 into main Dec 2, 2026
46 checks passed
@Xuanwo
Xuanwo deleted the yang/ent-2281-batch-manifest-deletes branch December 2, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-namespace Namespace impls K-approved Latest Gatekeeper recommendation permits acceptance. performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants