Repository navigation
Persist exact-version manifests for recoverable named soft deletes - #3313
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3313 +/- ##
=============================================
- Coverage 64.24% 50.85% -13.39%
+ Complexity 10398 8799 -1599
=============================================
Files 840 941 +101
Lines 71755 81285 +9530
Branches 8611 9853 +1242
=============================================
- Hits 46099 41338 -4761
- Misses 23004 36489 +13485
- Partials 2652 3458 +806 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6cb6511 to
ca6012d
Compare
Stage ordered child IDs for each immutable root. Publish the exact manifest set and soft-retire its named versions in one transaction, so a retry does not resolve a replacement name. Published pages can be read by manifest ID without fetching the root. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ca6012d to
45fb369
Compare
|
Please store the full ordered list of chunk IDs in one MySQL row per named version, without splitting it into 64-ID pages. Follow the stitch path on |
|
Please use The cleanup worker can save the exact tuple and read the manifest directly, without resolving the latest version or reading the original Ambry root. Keep |
Use the named version tuple for recovery and reserve it against root substitution. Validate bounded payload size, transaction rollback, locking and restart recovery on MySQL. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Eliminate durable staging. Bound request size before reading chunk iterators and use exact version-set receipts for lost commit replies. Reject reinsertions of published tuples even when the root matches. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… on missing manifests Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
(account_id, container_id, blob_name, version); recovery does not require the original Ambry root.Durability and rollout: Defer production DDL. Once installed, every named PUT checks the manifest table and depends on the trigger definer, even before DELETE activation. A publication admits at most 32 unfenced versions and 262,144 children in total; every live version must have a matching composite manifest. Before activation, qualify packet limits and replication on writers and promotion candidates, gate legacy DELETE and purge, deploy retirement-aware reads, and provide durable worker discovery and an ownership policy. On rollback, disable publication but keep the fences and committed evidence. See the migration runbook.
Testing Done
./gradlew --offline --no-daemon --max-workers=2 -q :ambry-named-mysql:test --tests '*MySqlNamedBlobDbTest' --tests '*NamedBlobManifestStoreTest' :ambry-named-mysql:intTest --tests '*NamedBlobManifestStoreIntegrationTest'(private project cache): 27 unit and 19 integration cases passed, none skipped, including a one-row round trip of 262,144 ordered 127-byte V5 chunk IDs (32 MiB).Local sizing probe (Connector/J 8.0.21, MySQL 8.0.46): two synthetic 32 MiB descriptor bodies round-tripped byte-for-byte in both prepared-statement modes with a 128 MiB packet limit. At 64 MiB, server-prepared worked and client-prepared rejected the request. With a 1 MiB client limit both modes rejected the write, and a fresh connection confirmed the test transaction's marker rolled back. Production and replication limits have not been verified.
Generated with GitHub Copilot CLI