Repository navigation
Conversation
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-6:20260626-201100 |
|
Workflow [PR], commit [b1677ea] AI ReviewSummaryThis PR replaces a brittle literal allow-list in the upgrade-check log filter with a class-based regex for benign background-mutation retries. The direction is reasonable, but the current Findings
Final VerdictNeeds revision before merge: the new filter suppresses a broader error surface than the PR claims. |
CI finish ledger — bc612d6Every failure below has an owner: a fixing PR (ours or external). Only
The only leaked Session id: cron:our-pr-ci-monitor:20260626-223000 |
|
@groeneai, it fails still - let's investigate. Another question: as the upgrade check runs after the Stress test, and the Stress test uses fuzzing (randomized queries), how can we work around it with just a limited list of names? - does not look adequate. |
|
@alexey-milovidov you are right, the exact-literal list is inadequate. The Stress test fuzzes before the upgrade check, so the failing literal and target type are arbitrary ('a', 'b', 'Hello', 'x', and any fuzzer-generated value), and enumerating them can never be complete. Pushed cc33023: replaced the nine per-literal entries with one error-CLASS match in the secondary pipe: This matches a On "it fails still": the current red is not the |
Test 04338_on_fly_mutation_read_overwritten_lc_source (added to master on 2026-06-15) creates a table with String column v holding 'x', then runs an async MODIFY COLUMN v UInt64 (mutations_sync = 0). The background mutation fails with CANNOT_PARSE_TEXT and retries after the upgrade restart, leaking a <Error> line into clickhouse-server.log that trips the upgrade-check error gate. This is the same intentionally-broken-mutation class (issue ClickHouse#39174) already allowlisted for 00834_kill_mutation ('a','b') and 01414_mutations_and_errors ('Hello'); 04338 is a newer member using 'x', which was not yet covered. Add the exact literal so this benign retry is suppressed without masking unrelated parse errors. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The Stress test runs the fuzzer (randomized queries) before the upgrade check, so the intentionally-broken background mutations (issue ClickHouse#39174) it leaves behind can fail with a CANNOT_PARSE_TEXT error carrying an arbitrary string literal and target type ('a', 'b', 'Hello', 'x', or any fuzzer generated value). An exact-literal allow-list can never be complete. Replace the nine per-literal entries with one error-class match in the secondary pipe: a CANNOT_PARSE_TEXT raised on a background-mutation executor (MutatePlainMergeTreeTask / MutateFromLogEntryTask / MergeTreeBackgroundExecutor), regardless of the value or type. User-initiated parse errors keep the "} <Error> TCPHandler:" / "} <Error> executeQuery:" prefix and are excluded by the separate existing filters, so genuine query-time parse errors still surface. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The previous wording said query-time parse errors "still surface" here, but they carry the } <Error> TCPHandler: / } <Error> executeQuery: prefix and are already dropped by the fixed-string entries above. The new background-mutation class filter does not broaden that existing query-error suppression; it only covers the background-executor CANNOT_PARSE_TEXT lines, which lack that prefix. Comment-only change. Co-Authored-By: Claude Opus 4.8 <[email protected]>
3886701 to
8dbd81e
Compare
The ClickHouse#39174 intentionally-broken-mutation class has a second benign error code besides CANNOT_PARSE_TEXT: FUNCTION_THROW_IF_VALUE_IS_NON_ZERO, raised when an UPDATE expression calls throwIf (e.g. 02597_column_update_tricky_expression_and_replication). It fires on the same background-mutation executor (MutatePlainMergeTreeTask) and leaks into the upgrade check the same way. Extend the existing class filter to match either error code on a background-mutation executor instead of adding per-literal entries. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Rebased onto master and resolved the While rebasing I folded in the only other benign error of the same #39174 class that still leaks here: This makes #108563 (literal |
…eck-04338-x-uint64-allowlist
|
Merged current Merge was clean, no conflicts. The rebase base already carried the per-literal
Validated the merged filter functionally against representative log lines: benign background-mutation errors with arbitrary literals ( Resolved the one outstanding AI-review wording nit (already reworded in One thing to flag for a quick glance: the |
…utor name The broad fixed-string `-e "MutateFromLogEntryTask"` entry in the primary rg -Fav stage dropped every replicated-mutation <Error> line (any code) before the class regex could constrain it, so unrelated replicated-mutation regressions were hidden. The class regex already lists MutateFromLogEntryTask alongside MutatePlainMergeTreeTask / MergeTreeBackgroundExecutor and only suppresses the two benign ClickHouse#39174 codes (CANNOT_PARSE_TEXT, FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), which sit inline on the same log line as the executor token. Removing the broad entry lets it scope the replicated path too; any other code on those executors now reaches upgrade_error_messages.txt. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Status — head
|
CI finish ledger — 1427e7fEvery failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only The PR target is green: Upgrade check (amd_release) = SUCCESS (12 OK) on this head. The class-based background-mutation filter (
Session id: cron:our-pr-ci-monitor:20260630-093000 |
…eck-04338-x-uint64-allowlist # Conflicts: # tests/docker_scripts/upgrade_runner.sh
|
Resolved a fresh conflict with
Kept Re-ran the pipe simulation on the resolved script: the benign classes (incl. |
MergeTreeBackgroundExecutor is a shared logger for all background merge and
mutate jobs (getLogger("MergeTreeBackgroundExecutor"), one name for the
merge_mutate/moves/fetch/common executors), and its routine() re-logs a
wrapped exception with only that shared name and no mutation-specific token.
Matching the two benign codes on that token alone therefore also suppressed a
genuine merge-path CANNOT_PARSE_TEXT / FUNCTION_THROW_IF_VALUE_IS_NON_ZERO,
hiding real merge regressions.
Narrow the match to also require the user-expression evaluation frame
(while executing 'FUNCTION ...). The intentionally-broken ClickHouse#39174 mutations
fail while evaluating a user _CAST or throwIf expression and always carry that
frame; merge-engine work (serialization, IO, checksums) never evaluates a user
FUNCTION expression, so a genuine merge-path failure with either code lacks the
frame and still reaches upgrade_error_messages.txt.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Closing in favor of #108856 (throwIf) and #108835 (CANNOT_PARSE_TEXT mutation errors), both merged to master. Between them the Upgrade check now allowlists everything this PR targeted, including 04338's On the last bot comment about the shared |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
The Upgrade check greps
clickhouse-server.logfor non-allowlisted<Error>lines. Stress tests leave behind intentionally-broken background mutations (issue #39174) that retry after the upgrade restart and fail withCANNOT_PARSE_TEXT(e.g.MODIFY COLUMN v UInt64onStringdata). The Stress test runs the fuzzer (randomized queries) before this stage, so the failing string literal and target type are arbitrary ('a','b','Hello','x', or any fuzzer-generated value). An exact-literal allow-list can never be complete.Replace the per-literal entries with one error-CLASS match in the secondary pipe: a
CANNOT_PARSE_TEXTraised on a background-mutation executor (MutatePlainMergeTreeTask/MutateFromLogEntryTask/MergeTreeBackgroundExecutor), regardless of the value or type. User-initiated parse errors keep the} <Error> TCPHandler:/} <Error> executeQuery:prefix and are excluded by the separate existing filters, so genuine query-time parse errors still surface.Originally surfaced on PR #107433 at SHA
05e8a54535d96bf2e93e8c830dae7c78b482c11d: report https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=107433&sha=05e8a54535d96bf2e93e8c830dae7c78b482c11d&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29 (1/12 sub-checks failed, all 273 error lines were this one benign mutation pattern).