Repository navigation
[2.1] Fixes 36026: Reconcile replayed RDF non-lineage and glossary relations against SQL - #38581
Conversation
…lations against SQL (#38482) Before projecting a replayed RDF relationship add (generic relationships and glossary-term relations), check the SQL row still exists; if it does not, remove the triple instead of resurrecting it. The reverse-row lookup applies only to metric -> metric RELATED_TO. Adapted for 2.1 (main's #38419 is not on this branch): - RdfProjectionLoaders: keep 2.1's 6-component record (no BoundAssets or table-key loaders); add RelationshipExists and GlossaryTermRelationRows. - RdfLiveWriteTest, RdfGlossaryTermRelationTest, RdfEntityDeleteLineageTest: construct the 6-arg loaders; keep 2.1's existing tests and add #38482's cases. - RdfQualityEvidenceTest: dropped, the file does not exist on 2.1. (cherry picked from commit 0c6f3b0)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskReplay now reconciles generic and glossary RDF edges against SQL, so lookup mismatches could omit valid projected relationships or retain stale triples. Backports the RDF replay fix to 2.1 so that replayed or delayed relationship and glossary-term additions check the SQL row still exists and remove the triple instead of resurrecting a deleted edge. Metric VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Backport of #38482 to 2.1 (Fixes #36026). The automatic backport failed: #38482 was written on top of #38419 (RDF live writes, table keys, concept bindings, quality evidence), which is not on 2.1. This is a hand port onto 2.1's RDF code, not a backport of #38419.
What it does: before projecting a replayed or delayed RDF relationship add (generic relationships and glossary-term relations), check the SQL row still exists; if it does not, remove the triple instead of resurrecting a deleted edge. The reverse-row lookup applies only to metric → metric
RELATED_TO, the only bidirectionaladdRelationship(..., true)caller.Adapted for 2.1:
RdfRepository,RdfProjectionLoaders,CoreRelationshipDAOs) matches Fixes 36026: Reconcile replayed RDF non-lineage and glossary relations against SQL #38482 line for line, exceptRdfProjectionLoaderskeeps 2.1's six-component record (noBoundAssets/table-key loaders from Fixes 38418: RDF graph live writes, table keys, concept bindings, quality evidence and extension points #38419) and gains onejava.util.Listimport 2.1 lacked.RdfQualityEvidenceTestis not touched (the file does not exist on 2.1).Tests (MySQL + Elasticsearch, 2.1):
Rdf*Testunit: 835 run, 0 failures, 0 errors (all 11 newRdfLiveWriteTestcases ran).RdfLiveProjectionIT(rdf lane, Fuseki): 5/5, 0 skipped, includingreplayedRelationshipAndGlossaryRelationAdditionsDoNotResurrectDeletedEdgesandbidirectionalMetricRelatedToProjectsBothDirectionsAndReconcilesOnReplay.RdfRepositoryreverted to 2.1: the same IT fails exactly those two cases (the deletedcontainsand metricrelatedTotriples come back after replay).🤖 Generated with Claude Code