You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test that a full rebuild and incremental builds produce the same index #2335
A full rebuild and an incremental build are two implementations of the same index, and they have drifted apart at least four times, each found on its own:
8ac57d75a: a full rebuild dropped fully retracted partitions.
282c21458: full-rebuild stats counted facts the merge didn't keep.
#2150 (OPTIONAL binds nothing for some subjects on an incrementally built index; a reindex makes it right) may be the same shape.
Each of these would have shown up in one test: index the same commits both ways and compare the results.
Proposal
Commit a fixed set of transactions, then index them two ways:
one full rebuild at the head (rebuild_index_from_commits);
a full rebuild at an early t, then incremental builds over the rest with no rebuild fallback (build_incremental_index_for_record), at more than one window size.
Then compare the two roots by value, not by CID or id, since leaf boundaries and id assignment can legitimately differ:
each order's rows, decoded to IRIs and values, per graph;
each arena: numbig, vectors, spatial (cell entries by subject IRI and WKT), fulltext.
The data should cover every arena kind, retractions (including a fully retracted partition), named graphs, and a geometry that's edited across the incremental windows.
Activity