Repository navigation
test(storage): deleting a bucket keeps buckets sharing its ID prefix - #14703
Conversation
On S3, deleting bucket X lists and deletes every key under the raw prefix X, so the files of bucket X2 go with it.
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR adds one e2e test to the Storage custom-server suite covering prefix-collision semantics of bucket deletion: it creates two buckets whose IDs share a prefix, uploads a file to each, deletes the prefix bucket, and asserts the surviving bucket's file remains downloadable while the deleted bucket's files disappear via
Reviewed commit: 1425d3e |
🟢 Tier S · Ready to mergeChecks the other bucket's files remain available. The test also verifies the deleted bucket's files are eventually removed.
📂 Walkthrough · 1
🔇 Filtered out · 1Findings Hansi considered but did not post.
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 19 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Pins that deleting a bucket keeps buckets whose ID starts with the same characters (
XandX2).On S3,
deletePath()used to list by the raw prefix, sodeletePath('img')also matchedimg2/…. The storage package fixed that in 740f0ee: the S3deletePathnow always deletes<path>/. Nothing covered the worker'sdeleteBucketagainst it.Checked against MinIO with
packages/storageonmain:testDeleteBucketKeepsBucketsSharingItsPrefixRelated: appwrite-labs/cloud#6628