Repository navigation
Open
Labels
P2Scheduled: real but not urgentarea:transactStaging, commit, import/bulk-import, novelty, retraction semanticsbugSomething isn't working as expected
Description
#2009 gives the write lanes one post-staging check tail (check_staged_write: one config read, then SHACL, uniqueness and the staged-config guard), replacing three copies that had drifted. A few ways to write or check data still go around it, so they can reach a different answer than a transaction would on the same data.
- Push. Push validates pushed commits through its own SHACL call with replay semantics (
origin_validated_replay; a violation is a 422), and runs neither uniqueness nor the config-group checks. As bplatz pointed out reviewing fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009, that means a governed ledger accepts pushed duplicates and a split config (one an older client wrote, say), and a split config then blocks later merges until it's repaired. Routing push through the tail while keeping its replay semantics and statuses would hold a pushed commit to the checks a transaction meets. That changes what replication refuses, so it wants a release note. -
validatewithout config.resolve_config_for_validate(fluree-db-api/src/validate.rs) falls back to default config on a config read error. Its comment says this mirrors the transaction path, but transactions refuse in that case (with fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009, a 500 witherr:storage/ReadFailure). A validation report produced without the ledger's config should fail, or at least say it was produced without config. -
stagepluscommit_stageddoesn't register the graphs it writes. A commit made through the publicfluree_db_transact::stageplusFluree::commit_stagedthat writes the config graph records no graph registration in the commit'sgraph_delta. A branch created afterwards can't replay it ("flake references unknown graph Sid"), and with fix: JSON-LD graph scoping, config integrity and explicit-only SHACL #2009 such commits pushed to another ledger are refused (422). The transaction path registers correctly. Thecommit_uncheckedtest helper (it_config_graph.rs) takes this path, so tests seeded with it don't model branches either.
Related existing issue: #2069, the neighboring branch case (a branch of a never-indexed ledger replays its source's config into a user graph).
From #2009 (Follow-ups: push through the shared check tail; validate without config; stage plus commit_staged) and bplatz's review of #2009.
Metadata
Metadata
Assignees
Labels
P2Scheduled: real but not urgentarea:transactStaging, commit, import/bulk-import, novelty, retraction semanticsbugSomething isn't working as expected
Activity