Skip to content

Upgrade check: allowlist the expected toInt8('fail') mutation error from 01155_old_mutation_parts_to_do - #108835

Merged
alexey-milovidov merged 4 commits into
masterfrom
fix-upgrade-check-01155-mutation-error
Jul 1, 2026
Merged

alexey-milovidov merged 4 commits into
masterfrom
fix-upgrade-check-01155-mutation-error

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Related: #107924

The "Error message in clickhouse-server.log" step of the Upgrade check scans the server log for <Error> lines and filters out a list of known-expected errors. The test 01155_old_mutation_parts_to_do deliberately runs a failing mutation:

ALTER TABLE rmt UPDATE m = m*toInt8(s) WHERE n=3

against a row where s = 'fail' (it tests the parts_to_do counter for a broken mutation). After the upgrade restart, the MergeTreeBackgroundExecutor retries the broken mutation and logs:

<Error> MergeTreeBackgroundExecutor: Exception while executing background task ...:
Code: 6. DB::Exception: Cannot parse string 'fail' as Int8: syntax error at begin of string. (CANNOT_PARSE_TEXT)

This is the same class of expected CANNOT_PARSE_TEXT error already allowlisted for the other deliberately-broken-mutation tests (00834_kill_mutation, 01414_mutations_and_errors_zookeeper, 04338_on_fly_mutation_read_overwritten_lc_source), but the 'fail' / Int8 variant was missing, so it leaked through and failed the Upgrade check on many unrelated pull requests.

This change adds the narrow fixed-string pattern Cannot parse string 'fail' as Int8 to the exclusion list (matching the wrapping MergeTreeBackgroundExecutor log line) and documents the test in the comment block. The pattern is specific to this value and type, so genuine upgrade-compatibility errors are not masked.

Example of the failure on an unrelated PR: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=107924&sha=906a9c8f3a0a6e66fb2c737fe1665504e188989f&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

…Int8` error from `01155_old_mutation_parts_to_do`

The "Error message in clickhouse-server.log" step of the Upgrade check
scans the server log for `<Error>` lines and filters out a list of
known-expected errors. The test `01155_old_mutation_parts_to_do` runs

    ALTER TABLE rmt UPDATE m = m*toInt8(s) WHERE n=3

against a row where `s = 'fail'`, which is a deliberately-failing
mutation (it tests the `parts_to_do` counter). After an upgrade restart
the `MergeTreeBackgroundExecutor` retries the broken mutation and logs

    <Error> MergeTreeBackgroundExecutor: Exception while executing background task ...:
    Code: 6. DB::Exception: Cannot parse string 'fail' as Int8: syntax error at begin of string. (CANNOT_PARSE_TEXT)

This is the same class of expected `CANNOT_PARSE_TEXT` error already
allowlisted for the other deliberately-broken-mutation tests
(`00834_kill_mutation`, `01414_mutations_and_errors_zookeeper`,
`04338_on_fly_mutation_read_overwritten_lc_source`), but the `'fail'`/
`Int8` variant was missing, so it leaked through and failed the Upgrade
check on many unrelated pull requests.

Add the narrow fixed-string pattern `Cannot parse string 'fail' as Int8`
to the exclusion list (matching the wrapping `MergeTreeBackgroundExecutor`
log line) and document the test in the comment block. The pattern is
specific to this value and type, so genuine upgrade-compatibility errors
are not masked.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [bc2bfb6]

Summary: ✅


AI Review

Summary

This PR updates tests/docker_scripts/upgrade_runner.sh to suppress the expected CANNOT_PARSE_TEXT log line left by 01155_old_mutation_parts_to_do's deliberately failing toInt8(s) mutation during Upgrade check restarts. I verified that the referenced test creates s = 'fail', checked the raw clickhouse-server.upgrade.log.zst artifact from the cited PR, and confirmed rg -F "Cannot parse string 'fail' as Int8" matches the raw log and removes those conversion-error <Error> lines. No code-review findings.

Missing context / blind spots
  • ⚠️ Current PR CI is still pending/skipping most jobs at the time of review; the PR Praktika report for bc2bfb68 currently has no test rows. A completed Upgrade check run on this PR would close this.
Final Verdict

✅ Approve from code review; wait for CI completion as usual.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 29, 2026
@alexey-milovidov alexey-milovidov self-assigned this Jul 1, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 1, 2026
Merged via the queue into master with commit 9fd4a7c Jul 1, 2026
174 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-upgrade-check-01155-mutation-error branch July 1, 2026 05:57
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 1, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…k-01155-mutation-error

Upgrade check: allowlist the expected `toInt8('fail')` mutation error from `01155_old_mutation_parts_to_do`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants