Repository navigation
Honor named blob retirement on GET and LIST when enabled - #3314
Merged
jitheshtr merged 2 commits intoDec 1, 2026
Merged
Conversation
1 task
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3314 +/- ##
=============================================
- Coverage 64.24% 31.41% -32.84%
+ Complexity 10398 5984 -4414
=============================================
Files 840 941 +101
Lines 71755 81353 +9598
Branches 8611 9876 +1265
=============================================
- Hits 46099 25553 -20546
- Misses 23004 53711 +30707
+ Partials 2652 2089 -563 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jitheshtr
force-pushed
the
jirajan/named-retirement-reads
branch
3 times, most recently
from
November 25, 2026 16:30
aea283f to
a4eaaad
Compare
jitheshtr
marked this pull request as ready for review
November 30, 2026 15:19
Keep retired versions hidden from ordinary GET and LIST. On a verified writer session, reject PUT versions at or below a fence. Retry only a confirmed deadlocked upsert, once. Leave enforcement disabled by default. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the staging fixtures with direct publication while keeping transaction control in the concurrent PUT test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jitheshtr
force-pushed
the
jirajan/named-retirement-reads
branch
from
December 1, 2026 19:54
a4eaaad to
d81c87a
Compare
beijxu
approved these changes
Dec 1, 2026
This was referenced Dec 1, 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
Deletedon a selected retired version, regardless of frontend clock skew. Include-deleted and include-all GET can retrieve that exact root. All six prefix/no-prefix LIST paths omit fenced selections before pagination. No-prefix options 2/3 retain their ordinary expiry fallback.REPEATABLE READ. Do not install next-transaction isolation overrides after initialization. Even without retirements, PUTs in the same index gap can deadlock. Only an upsert retries, once, with the same version and fence check after a confirmed rollback (1213/40001). A create-only victim returns 503 rather than reusing a stale existence check. No retry follows a timeout or lost reply.Review just this layer. Before enabling, verify acknowledged retirements are visible at every serving, fallback and promotion endpoint. Measure same-key and sequential-key PUT contention, DELETE and TTL contention on the shared pools, and large-container LIST plans and latency. Publication separately requires a fixed session with autocommit off and validated isolation. After publication, stop publishing to roll back; keep fences enforced, legacy DELETE and cleaners excluded, and old readers out of rotation.
Testing Done
./gradlew --offline --no-daemon --max-workers=2 -q :ambry-named-mysql:test --tests '*MySqlNamedBlobDbTest' --tests '*MySqlNamedBlobDbFactoryTest' --tests '*NamedBlobManifestStoreTest' :ambry-named-mysql:intTest --tests '*NamedBlobManifestStoreIntegrationTest'— 30 unit and 30 integration tests passed, none skipped (Java 17, private MySQL 8.0.46). With the production writer pool, the contention tests assert one deadlock in each case: the recovered upsert counts no insert error; the failed create-only PUT counts one.Require green broad CI and an executed manifest gate on the merge candidate.
Generated with GitHub Copilot CLI