Skip to content

Upgrade check: do not run 05082 in the stress phase - #125562

Open
groeneai wants to merge 1 commit into
ClickHouse:masterfrom
groeneai:upgrade-check-skip-05082
Open

groeneai wants to merge 1 commit into
ClickHouse:masterfrom
groeneai:upgrade-check-skip-05082

Conversation

@groeneai

@groeneai groeneai commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

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 failing on distributed DDL entries that the previous release never executed because its DDL queue was stuck on 05082_kill_and_system_on_cluster_access_types.

Description

Upgrade check (amd_release) fails Error message in clickhouse-server.log with lines the upgraded server logs for ON CLUSTER entries the previous release left in the DDL queue, e.g. BackupsWorker: Failed to make internal backup ... Got error from the initiator ... Query was cancelled (#101841, #117738). CIDB: 11 such jobs on 11 PRs since 2026-10-02.

The previous release's copy of 05082 sends KILL PART_MOVE_TO_SHARD ... ON CLUSTER. On 26.9 that reads system.part_moves_between_shards, which throws a Keeper error (No node for a table whose Keeper tree is gone, or Session expired). The DDL worker retries that entry until the stress phase ends (116 and 174 retries in the two jobs) and never reaches the entries behind it. KILL QUERY WHERE 1 SYNC then cancels their initiators, and the upgraded server runs the backlog.

The change passes --skip 05082_kill_and_system_on_cluster_access_types to clickhouse-test through stress.py's existing --skip-func-tests (a skip-list file or tag would be read from the previous release's tree). The skip is unconditional: #122132 fixed the No node case on master, but tryGetChildren still throws on Session expired, so a 26.9 backport would not cover #117738. 05082 still runs in all stateless and stress jobs.

Validation (local, no new test for test infrastructure): the edited line, expanded by stress.py into all 8 worker commands and the smoke check, gives clickhouse-test args.skip == {05082...} (empty for the old line); a local run with those tokens reports 05082 SKIPPED and sends no query, without them it runs 05082.

Related: #122132
Related: #101841 (comment)


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

The upgrade check runs the previous release's tests on the previous release's
server. On 26.9, the `KILL PART_MOVE_TO_SHARD ... ON CLUSTER` of
05082_kill_and_system_on_cluster_access_types reads
`system.part_moves_between_shards`, which throws a Keeper error (`No node`, or
`Session expired`), so the DDL worker retries that entry until the stress phase
ends and never runs the entries queued behind it. `KILL QUERY WHERE 1 SYNC`
cancels their initiators, and the upgraded server then executes the backlog:
for example a 02907 `BACKUP ... ON CLUSTER` host part logs "Failed to make
internal backup ... Got error from the initiator ... Query was cancelled", and
the post-upgrade log scan fails the job.

Pass `--skip 05082_kill_and_system_on_cluster_access_types` to clickhouse-test
through stress.py's `--skip-func-tests`. A skip-list file or a tag would be read
from the previous release's tree, while the CLI option is read by master's
clickhouse-test. The skip is unconditional: ClickHouse#122132 handles `No node` on master,
but `tryGetChildren` still throws on `Session expired`.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=101841&sha=30788669edfb1fdebbae07e31d69b1e4378f4c44&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=117738&sha=a535902fa0569296d78039fdcefe1e8ad8cd1fa6&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-request PR origin: a maintainer pinged or directed groeneai labels Oct 13, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (2 nits, none blocking).

# Sev Finding Verdict Evidence / action
1 💡 The skip states no removal condition AGREE, noted none exists yet: tryGetChildren still throws on Session expired, so the skip stays until a previous release handles that too
2 💡 #114029 rewrites the same stress line AGREE, noted one-line conflict for whichever merges second; keep its wrapper and add --skip-func-tests

Severity: ❌ blocker / ⚠️ major / 💡 nit.

Session id: cron:clickhouse-review-slot-8:20261013-055500

@clickhouse-gh

clickhouse-gh Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [bec6bf5]

Summary: ✅


AI Review

Summary

This PR narrows the upgrade-check stress phase by forwarding --skip 05082_kill_and_system_on_cluster_access_types into stress.py, so the previous-release binary no longer gets stuck retrying that ON CLUSTER entry and leaking the backlog into the upgraded-server log scan. I reviewed the PR discussion, current diff, the stress.py argument plumbing, and the clickhouse-test skip matching logic; the change is consistent with the stated CI-only goal and I did not find a correctness or maintainability issue that merits a review comment.

Final Verdict

✅ Looks good to merge. No new inline findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). groeneai-origin-request PR origin: a maintainer pinged or directed groeneai manual approve Manual approve required to run CI pr-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant