Repository navigation
planning: a CDC baseline leg admitted because its source could not be read warns that the text-declaration check did not run - #1245
Open
panchenkoai wants to merge 1 commit into
Open
panchenkoai wants to merge 1 commit into
panchenkoai wants to merge 1 commit into
Conversation
… read warns that the text-declaration check did not run The guard that refuses a baseline leg declaring text over a PostgreSQL date, time, timestamp or array column admitted the leg silently when its own connect or describe failed. It now admits it with a WARN naming the export, the failed step, the credential-masked cause and that the check did not run; exit codes are unchanged. The check reads on the probe plan_batch_export already holds and opens its own connection only when the caller holds none.
This branch has not been deployed
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.
Why
refuse_text_the_stream_renders_otherwise(src/pipeline/planning.rs) refuses a pending CDC baseline leg that declarestextover a PostgreSQL date, time, timestamp or array column (see #1233). When its own connect or describe failed it admitted the leg with no word, so the check could be skipped unseen. This closes the Limit paragraph of #1233 (owner decision, option 2: admit, but say so).What
connectordescribe), the credential-masked cause (redact_error), and that the text-declaration check did not run.probethatplan_batch_exportalready holds; it connects itself (connect_source) only when the caller holds none. The extra connection is gone wherever a probe exists.assert!based, WARN read through the repo'sinstall_warn_captureseam):changelog.d/cdc-baseline-text-check-unchecked-warns.md,docs/fail-loud-matrix.yaml(new row, PostgreSQL test cell, other enginesnawith reasons),docs/type-mapping.mdone clause.Evidence
cargo test --lib pipeline::planning: 10 passed, 0 failed--no-default-features --features jemalloc,-D warningscargo mutants --in-diffNot verified: Snowflake NOT VERIFIED (quota error 090073, untouched; not applicable to a log line). No live cell: the change is a log line on a path whose behaviour is otherwise unchanged. Typos, lychee, agnix and gitleaks NOT RUN locally (pinned tools not installed); CI grades them.
Invariants
checkanddoctorand stays inplan_batch_export, the seam run, check and doctor share; its failure to run is now visible.Existing users: nothing written before the upgrade changes; a source that was unreachable gets one new WARN and the same exit code.