Repository navigation
fix(query): keep historical reads on one index version - #2331
Merged
Merged
Conversation
bplatz
approved these changes
Nov 12, 2026
bplatz
left a comment
Contributor
There was a problem hiding this comment.
Thank you for this, and welcome — a great first PR.
The diagnosis is exactly right: the historical loader built its snapshot from one index root and then attached a store from whatever root a second nameservice lookup returned, so an index published in between left the snapshot's string watermarks pointing into a different dictionary. Binding the store to view.snapshot.index_root_id() is the minimal fix.
I also reverted the one line locally and both new tests fail with a commit id in place of digest-item-2-0-…, the symptom from #2265, so the regressions pin the bug rather than just passing. The gate on the old root's read makes the race deterministic, which is much appreciated.
bplatz
added a commit
that referenced
this pull request
Nov 12, 2026
Brings in #2157, #2226, #2297, #2314 and #2331. Conflicts: - eval/helpers.rs (#2226): the filter verdict cache key takes main's store instance id and next's u32 graph id, and main's test builds its stores with next's `BinaryIndexStore::empty()`. - grp_transact.rs lists both sides' test modules. - #2157 changed `retract` and `drop_branch` on every nameservice backend, and the nested-ledger prefixes a sweep excludes. next replaced those operations with the fenced record store, so the nameservice, sweep and drop-test hunks take next's side here. The next commit carries the fix to next's operations.
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.
Fixes #2265
Ensure historical reads use the same index version throughout loading, even if a newer index is published concurrently. Mixing versions could cause data strings to be replaced by commit metadata.
Adds deterministic JSON-LD and SPARQL regressions; both fail without the fix.
Validation: 2,711 tests passed (11 skipped); Clippy and formatting passed.