Repository navigation
Upgrade check: allowlist the expected toInt8('fail') mutation error from 01155_old_mutation_parts_to_do - #108835
Merged
Conversation
…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]>
Contributor
|
Workflow [PR], commit [bc2bfb6] Summary: ✅ AI ReviewSummaryThis PR updates Missing context / blind spots
Final Verdict✅ Approve from code review; wait for CI completion as usual. |
…1155-mutation-error
…1155-mutation-error
…1155-mutation-error
1 task
1 task
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`
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.
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 test01155_old_mutation_parts_to_dodeliberately runs a failing mutation:against a row where
s = 'fail'(it tests theparts_to_docounter for a broken mutation). After the upgrade restart, theMergeTreeBackgroundExecutorretries the broken mutation and logs:This is the same class of expected
CANNOT_PARSE_TEXTerror 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'/Int8variant 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 Int8to the exclusion list (matching the wrappingMergeTreeBackgroundExecutorlog 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):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes