Repository navigation
Conversation
Test 04341_broken_mutation_part_log_flush intentionally fails a plain MergeTree mutation via UPDATE x = x + throwIf(1). If the broken mutation is still queued when the server restarts for the upgrade step, it is replayed and logs FUNCTION_THROW_IF_VALUE_IS_NON_ZERO (code 395) at <Error>, tripping the upgrade check's server.log assertion. This is a new member of the ClickHouse#39174 family (intentionally-broken mutations retry after upgrade). Add two allow-list regexes requiring the mutation executor context (MutatePlainMergeTreeTask / MergeTreeBackgroundExecutor background task) AND the code-395 signature together, so genuine regressions (which surface as a different code) are not masked. CIDB: 40 failures / 39 distinct PRs / 0 on master in 60 days, onset 2026-06-26. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-3:20260701-031000 |
|
cc @maxknv @leshikus — could you review this? It adds two allow-list regexes to |
|
Workflow [PR], commit [8cf1f77] Summary: ✅ AI ReviewSummaryThis PR adds two upgrade-check allow-list patterns for intentionally failed plain- Final VerdictStatus: ✅ Approve |
CI finish ledger — 8cf1f77CI fully finished on this head (Finish Workflow + Mergeable Check pass,
Session id: cron:our-pr-ci-monitor:20260701-070000 |
03279_database_backup_database_disk_engine creates a ..._inner_backup_database database (ENGINE = Backup) and drops it, but the upgrade check runs the client with --fake-drop (DROP queries are ignored), so the database survives into the upgrade restart. When the upgrade run randomly enables --encrypted-storage, the backed-up parts are encrypted; on restart the Backup engine reads them through DiskBackup (a non-encrypted virtual disk), so BackupImpl rejects the encrypted files with CANNOT_RESTORE_TO_NONENCRYPTED_DISK (Code 697), logged as a broken part plus a follow-up 'Detaching broken part ... backward incompatibility' line. This is expected: an encrypted backup stores already-encrypted bytes and no disk key, so it can only be read back on an encrypted disk. Allow-listed with two narrow regexes that require the _inner_backup_database context together with the specific message, so other broken-part errors are not masked. The co-occurring FUNCTION_THROW_IF_VALUE_IS_NON_ZERO mutation-retry noise on the same check is handled separately in ClickHouse#109009. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Closing as superseded by #108651 ("Match benign mutation parse errors by class in the Upgrade check"), which is already approved by @ alexey-milovidov and #108651 replaces the per-literal The two regexes here ( |
03279_database_backup_database_disk_engine creates a ..._inner_backup_database database (ENGINE = Backup) and drops it, but the upgrade check runs the client with --fake-drop (DROP queries are ignored), so the database survives into the upgrade restart. When the upgrade run randomly enables --encrypted-storage, the backed-up parts are encrypted; on restart the Backup engine reads them through DiskBackup (a non-encrypted virtual disk), so BackupImpl rejects the encrypted files with CANNOT_RESTORE_TO_NONENCRYPTED_DISK (Code 697), logged as a broken part plus a follow-up 'Detaching broken part ... backward incompatibility' line. This is expected: an encrypted backup stores already-encrypted bytes and no disk key, so it can only be read back on an encrypted disk. Allow-listed with two narrow regexes that require the _inner_backup_database context together with the specific message, so other broken-part errors are not masked. The co-occurring FUNCTION_THROW_IF_VALUE_IS_NON_ZERO mutation-retry noise on the same check is handled separately in ClickHouse#109009. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Requested by @ alexey-milovidov on #108957 (CI triage): own this upgrade-check flake in a separate PR.
The upgrade check's "Error message in clickhouse-server.log" assertion (
Upgrade check (amd_release)) has been failing across many unrelated PRs since ~2026-06-26 withFUNCTION_THROW_IF_VALUE_IS_NON_ZERO(code 395) at<Error>from a background mutation. CIDB: 40 failures / 39 distinct PRs / 0 on master in the last 60 days, onset 2026-06-26.Root cause: test
04341_broken_mutation_part_log_flushrunsALTER TABLE t_failed_mutation_part_log UPDATE x = x + throwIf(1) WHERE 1, which fails a plain-MergeTree mutation on purpose (to exercise the failed-MutatePartpart_logpath added in 189f802). This is a new member of the #39174 family: if the intentionally-broken mutation is still queued when the server restarts for the upgrade step, it is replayed and logs code 395 at<Error>, tripping the "no error messages in server log" check.Fix: add two allow-list regexes to the secondary grep pipe in
tests/docker_scripts/upgrade_runner.sh, matching the two<Error>line shapes this produces:MutatePlainMergeTreeTask.*FUNCTION_THROW_IF_VALUE_IS_NON_ZERO(the task line and itsexecuteStep()line)MergeTreeBackgroundExecutor: Exception while executing background task.*FUNCTION_THROW_IF_VALUE_IS_NON_ZERO(the background-executor wrapper line)Each regex requires the mutation-executor context AND the code-395 signature together. Code 395 is by definition a user
throwIfexpression evaluating non-zero (an expected error, never a server malfunction), so a genuine upgrade regression surfaces as a different code and is not masked. This mirrors the existingCANNOT_PARSE_TEXTexclusions for the same #39174 family (00834_kill_mutation, 01414_mutations_and_errors_zookeeper, 04338_on_fly_mutation_read_overwritten_lc_source).Validation: the two regexes were run against the exact
<Error>log lines captured from real CI failures plus decoy lines (a genuineApplication/LOGICAL_ERRORregression, a real code-999MutatePlainMergeTreeTaskerror, and a realMEMORY_LIMIT_EXCEEDEDbackground-task error). Without the fix all benign throwIf lines leak (check fails, as today); with the fix all benign throwIf lines are filtered while every decoy survives.CI report example: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=107566&sha=ff5b03a6889ac814851c78b9ceca8ee83e8977d5&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29