{"record":{"id":"b23db360b02e7e81","repo":"dbt-labs/dbt-core","slug":"probe-should-be-found-as-untracked-read-in-segment","errorCode":null,"errorMessage":"probe should be found as untracked read in segment","messagePattern":"probe should be found as untracked read in segment","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-adapter/src/time_machine/event_replay.rs","lineNumber":3200,"sourceCode":"            args: serde_json::json!([sql]),\n            result: serde_json::json!({\"rows\": 0}),\n            success: true,\n            error: None,\n            timestamp_ns: seq as u64,\n        };\n\n        // Recording order: SHOW_PARAMS (0), DATEDIFF_PROBE (1), CREATE_VIEW (2)\n        let recording = make_recording(vec![\n            make_exec(0, show_sql),\n            make_exec(1, probe_sql),\n            make_exec(2, ddl_sql),\n        ]);\n\n        // Fusion replay order: DATEDIFF_PROBE first, then SHOW_PARAMS, then CREATE_VIEW\n        let probe_args = serde_json::json!([probe_sql]);\n        let e = recording\n            .take_semantic_match(node_id, \"execute\", &probe_args, SemanticCategory::Write)\n            .expect(\"probe should be found as untracked read in segment\");\n        assert_eq!(e.seq, 1);\n\n        let show_args = serde_json::json!([show_sql]);\n        let e = recording\n            .take_semantic_match(node_id, \"execute\", &show_args, SemanticCategory::Write)\n            .expect(\"SHOW PARAMETERS should be found as untracked read in segment\");\n        assert_eq!(e.seq, 0);\n\n        let ddl_args = serde_json::json!([ddl_sql]);\n        let e = recording\n            .take_semantic_match(node_id, \"execute\", &ddl_args, SemanticCategory::Write)\n            .expect(\"CREATE VIEW should still be matched as a write barrier\");\n        assert_eq!(e.seq, 2);\n    }\n\n    /// In strict mode, read-only execute calls (SELECT/SHOW) should be matched globally\n    /// via take_ro_exec_read and should not consume the sequential write slot.\n    #[test]","sourceCodeStart":3182,"sourceCodeEnd":3218,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-adapter/src/time_machine/event_replay.rs#L3182-L3218","documentation":"Test-only assertion in the out-of-order replay test: when the datediff probe arrives before the recorded SHOW PARAMETERS and CREATE VIEW events, it must still be found as an untracked read within the segment. Fires only if segment-scoped read matching regresses.","triggerScenarios":"Thrown at crates/dbt-adapter/src/time_machine/event_replay.rs:3200 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the segment untracked-read search to match out-of-order read events","Verify the read/write barrier classification of probe SQL","Treat failure as an event-replay matching regression"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}