Skip to content

Inventory recorded named-blob manifests by exact version - #3323

Open
jitheshtr wants to merge 1 commit into
linkedin:masterfrom
jitheshtr:jirajan/named-manifest-inventory
Open

jitheshtr wants to merge 1 commit into
linkedin:masterfrom
jitheshtr:jirajan/named-manifest-inventory

Conversation

@jitheshtr

@jitheshtr jitheshtr commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  1. Add an on-demand, read-only inventory for up to 32 explicitly supplied named-blob version tuples. It reports whether each exact manifest was verified, missing, or invalid without fetching the original root or its chunks.
  2. Use one bounded, indexed manifest lookup per tuple with byte-exact name matching. Check the checksum and descriptor framing without building a child ID list. The JDBC session must use READ COMMITTED isolation or stronger.
  3. Default JDBC connect and socket read timeouts to five seconds each. URL options can override them; neither is a whole-run deadline.

Durability: A verified row confirms the manifest passed its checksum and framing checks; it does not independently validate child IDs, check that chunks exist, or authorize deletion. Exit zero means the report completed, even if it contains invalid rows. The command does not change the schema, touch the legacy cleaner, or enable reclamation. Remote database authentication was not tested.

Testing Done

  • Local code review completed
Command Result
./gradlew --offline --no-daemon :ambry-named-mysql:assemble :ambry-named-mysql:test --rerun :ambry-named-mysql:intTest --rerun --tests com.github.ambry.named.NamedBlobManifestStoreIntegrationTest Build passed; 32 unit and 34 isolated MySQL tests passed, including one checkout per tuple, Unicode lookup through a Latin1 JDBC connection, and rejection of oversized or malformed payloads
./gradlew --offline --no-daemon --quiet :ambry-named-mysql:manifestInventory --args='<absolute-tuple-file> <absolute-new-report-file>' Produced the expected missing report against a local MySQL database with a SELECT-only identity
git diff --check Passed

Generated with GitHub Copilot CLI

@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 68.42105% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.96%. Comparing base (52ba813) to head (54333b1).
⚠️ Report is 435 commits behind head on master.

Files with missing lines Patch % Lines
...github/ambry/named/NamedBlobManifestInventory.java 54.11% 31 Missing and 8 partials ⚠️
...com/github/ambry/named/NamedBlobManifestStore.java 93.75% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master    #3323       +/-   ##
=============================================
- Coverage     64.24%   50.96%   -13.29%     
+ Complexity    10398     8853     -1545     
=============================================
  Files           840      942      +102     
  Lines         71755    81472     +9717     
  Branches       8611     9891     +1280     
=============================================
- Hits          46099    41521     -4578     
- Misses        23004    36488    +13484     
- Partials       2652     3463      +811     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Add a read-only command that validates recorded manifests for supplied version tuples without fetching blob data.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jitheshtr
jitheshtr force-pushed the jirajan/named-manifest-inventory branch from 333e464 to 54333b1 Compare December 3, 2026 15:13
@jitheshtr
jitheshtr marked this pull request as ready for review December 3, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants