Repository navigation
Conversation
The Upgrade check "Error message in clickhouse-server.log" sub-check fails when a background mutation on a non-replicated MergeTree fails to CAST an intentionally-unconvertible value. Tests like 03047_on_fly_mutations_alters, 03100_lwu_25_update_alters and 04338_on_fly_mutation_read_overwritten_lc_source do UPDATE v = 'x' then MODIFY COLUMN v UInt64, leaving a part holding 'x' that a later background mutation cannot parse, logging CANNOT_PARSE_TEXT at <Error>. This is the same backward-incompatibility-false-positive class as ClickHouse#39174: a bad mutation that retries after upgrade does not indicate a compatibility problem. The replicated wrapper MutateFromLogEntryTask is already allow-listed; this adds the non-replicated counterpart MutatePlainMergeTreeTask. Filter the narrow inner text "Cannot parse string 'x' as UInt64" rather than the broad task-component names: it appears in all three emitted lines (the MutatePlainMergeTreeTask line, its executeStep() line, and the MergeTreeBackgroundExecutor wrapper line), so one entry covers them all while a genuinely different plain-mutation error still surfaces. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260626-012400 |
|
cc @fm4v — could you review? Same upgrade_runner.sh allow-list pattern as #96747 / #101576: adds the non-replicated MutatePlainMergeTreeTask counterpart of the already-filtered MutateFromLogEntryTask, masking only the benign |
|
Workflow [PR], commit [ddba4c9] Summary: ⏳
AI ReviewSummaryThis PR adds a narrow fixed-string allow-list entry for the upgrade check log scan, covering the benign Final VerdictStatus: ✅ Approve |
The Upgrade check (amd_release) server.log scan fails on benign background-mutation errors left behind by 02597_column_update_tricky_expression_and_replication: its 'ALTER TABLE test UPDATE d = d + throwIf(1)' (mutations_sync=0) mutation is intentionally-failing and is killed later in the test, but the upgraded server retries it on restart and logs FUNCTION_THROW_IF_VALUE_IS_NON_ZERO at <Error>. This is the same ClickHouse#39174 stress-leftover-mutation class as the adjacent CANNOT_PARSE 'x'/'Hello' allow-list entries. Add a narrow inner-text 'Value passed to throwIf function is non-zero' entry to the rg -Fav allow-list. It covers all three emitted line shapes (MutatePlainMergeTreeTask, its executeStep(), and the MergeTreeBackgroundExecutor wrapper) while a genuinely different background-mutation error still surfaces. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Batched a second allow-list entry into this PR (commit 46c8acf): Source: Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-1:20260626-145600 |
|
Closing in favor of #108651, which now covers both benign #39174 background-mutation error classes (CANNOT_PARSE_TEXT and FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) by error CLASS on the background-mutation executor, rather than per-literal entries. That approach was reviewed and approved on #108651; the throwIf coverage from this PR is folded in there. |
|
PR scope slimmed: master now carries the Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-7:20260629-113100 |
|
Closing as superseded by #108651 (this supersedes my earlier "scope slimmed" comment, which was based on a stale read of #108651). #108651 (alexey-milovidov-approved) now suppresses both benign issue-#39174 background-mutation classes by error CLASS on the background-mutation executor: That covers the Verified against the real leaked |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #39174
Filters the benign
FUNCTION_THROW_IF_VALUE_IS_NON_ZERObackground-mutation<Error>line from theUpgrade check (amd_release)server.log scan.Test
02597_column_update_tricky_expression_and_replicationrunsALTER TABLE test UPDATE d = d + throwIf(1)withmutations_sync=0, then laterKILL MUTATION ... LIKE '%throwIf%'. Under upgrade stress the intentionally-failing async mutation can be left behind; the restarted server retries it and logsValue passed to 'throwIf' function is non-zeroat<Error>. This is the issue #39174 class (a bad mutation, not a backward incompatibility).The
CANNOT_PARSE_TEXTsibling (Cannot parse string 'x' as UInt64) is already in the allow-list on master (#107985); this adds thethrowIfcounterpart. The narrow inner-textValue passed to 'throwIf' function is non-zeromatches all three emitted line shapes (MutatePlainMergeTreeTask:, itsexecuteStep(), and theMergeTreeBackgroundExecutorwrapper) without masking a genuinely different background-mutation error.Validated against the real leaked
upgrade_error_messages.txt(159 lines from PR #106386, 255 from PR #105991): without the entry every line leaks and the gate fails; with it 0 lines leak; a controlLOGICAL_ERRORin the sameMutatePlainMergeTreeTaskstill surfaces.CI report (throwIf leak, PR #106386): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=106386&sha=767b2cacddb2da81a9698d767ee5fa387995e69b&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29