Skip to content

Do not run the previous release's 05079 in the upgrade check - #121506

Closed
alexey-milovidov wants to merge 1 commit into
masterfrom
fix/upgrade-check-skip-previous-release-05079
Closed

alexey-milovidov wants to merge 1 commit into
masterfrom
fix/upgrade-check-skip-previous-release-05079

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Related: #121484
Related: #121315
Related: #119810
Related: #121418

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):

Stop the upgrade check from creating, in its previous-release phase, a quantile state column whose persisted spelling the upgraded server cannot read back.

Description

Upgrade check (amd_release) reds two rows from one cause, e.g. this run on #121418: Error message in clickhouse-server.log and The mutation submitted before the upgrade was not finished by the new server. The same t_pfl_05079 attach failure hit #102065, #119304 and #121372 in the last two days.

Code: 70. DB::Exception: Cannot convert String to double: Cannot attach table `test_1`.`t_pfl_05079` ... (`s` AggregateFunction(quantile('0.5'), Float64)) ENGINE = Memory. (CANNOT_CONVERT_TYPE)

The pre-upgrade phase runs the previous release's copy of the suite. At v26.9.1.1629-stable, 05079_parse_aggregate_function_typed_param creates AggregateFunction(quantile(0.5::Decimal32(1)), Float64), which that release persists as quantile('0.5') (its own reference file shows this spelling). #119810 fixed the producer on master and explicitly does not repair metadata already written the old way. --upgrade-check implies --fake-drop, so the table survives into the restart and the new server correctly refuses it. That failed load makes every system.mutations query throw ASYNC_LOAD_WAIT_FAILED, which is the second row (the mechanism described in #121484 and #121315).

So, as #121484 does for 05211, this skips the test in the previous-release phase. The skip is keyed on the cloned reference still carrying the untyped quantile(\'0.5\'), Float64 spelling, so it stops applying by itself once the previous release prints the type. Checked against both files: the v26.9.1.1629-stable reference matches, master's does not. This touches the same hunk as #121484; whichever merges second takes a trivial conflict resolution.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/121506]

The previous release's copy of `05079_parse_aggregate_function_typed_param`
persists `AggregateFunction(quantile(0.5::Decimal32(1)), Float64)` as
`quantile('0.5')`. `--upgrade-check` implies `--fake-drop`, so the table
survives into the upgrade restart, where the new server (which prints and
reads back the typed spelling since #119810, without repairing metadata already
written the old way) refuses to load it with `CANNOT_CONVERT_TYPE`. The failed
load logs an `<Error>` and makes every `system.mutations` query throw, so the
same run also reports "The mutation submitted before the upgrade was not
finished by the new server".

Skip that test in the previous-release phase while the cloned reference still
carries the untyped spelling, mirroring #121484 for 05211.

Seen on https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=121418&sha=6d65f5936b09462cd8b3640348583ee081a97ab7&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
(#121418) and on #102065, #119304, #121372.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5b825a2]

Summary: ❌

job_name test_name status info comment
Stress test (arm_msan) FAIL
Hung check failed, possible deadlock found FAIL cidb

AI Review

Summary

This PR teaches tests/docker_scripts/upgrade_runner.sh to skip 05079_parse_aggregate_function_typed_param only when the cloned previous-release reference still carries the old quantile('0.5') spelling that writes unreadable metadata for the upgraded server. I verified that gate against both the current master reference and the v26.9.1.1629-stable reference, and I did not find correctness, coverage, or PR-metadata issues in the current diff.

Final Verdict

✅ Approve. No findings to post as inline review comments.

@azat azat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's fix it in a similar way as #121590
I will address it there as well.

@azat azat self-assigned this Sep 22, 2026
azat added a commit to azat/ClickHouse that referenced this pull request Sep 22, 2026
The printed type (quantile('0.5')) is not re-parseable on this branch, so a
table left behind cannot be reattached and the Upgrade check reports it.
Use toTypeName(defaultValueOfTypeName(...)) instead: same parsing path, same
error codes, nothing persisted.

Refs: ClickHouse#121506

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@azat azat closed this Sep 22, 2026
xuir268 added a commit to xuir268/ClickHouse that referenced this pull request Sep 24, 2026
Skip `05079_parse_aggregate_function_typed_param` only when the previous release reference contains the known unreadable persisted decimal spelling. The corrected test stays enabled, and mutation validation and error-log checks are unchanged. Adapted from ClickHouse#121506.

CI: https://github.com/ClickHouse/ClickHouse/actions/runs/35963033445/job/107560097729?pr=105338
PR: ClickHouse#105338

Validation: shell syntax; actual 26.9.2.8 fixture selects exclusion; current and missing references do not. Full upgrade validation requires CI.
xuir268 added a commit to xuir268/ClickHouse that referenced this pull request Sep 25, 2026
Gate the exclusion on the old unreadable reference spelling; retain corrected-test coverage and all upgrade error checks. The replica-test race fix is now included in master and is not duplicated here.

Related: ClickHouse#121506
PR: ClickHouse#105338
CI: https://github.com/ClickHouse/ClickHouse/actions/runs/35963033445/job/107560097729?pr=105338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants