Skip to content

Backport #111029 to 26.7: Fix flaky test_replicated_table_structure_alter - #111884

Merged
clickhouse-gh[bot] merged 2 commits into
26.7from
backport-111029-to-26.7
Jul 26, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.7from
backport-111029-to-26.7

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Manual backport of #111029 to 26.7 (cherry-pick of the merge commit).

The 26.7 branch contains the change that caused the regression, so the integration test test_replicated_database/test.py::test_replicated_table_structure_alter fails on 26.7 CI runs and on every backport pull request targeting 26.7 (e.g. #111828, CI report). Beyond the flaky test, the underlying bug is real: a comment-only or settings-only ALTER committing a stale query-cached metadata snapshot can silently drop a column added by a concurrent ALTER ... ADD COLUMN.

Related: #110036
Related: #111828

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

…ta-snapshot-cache

Fix flaky test_replicated_table_structure_alter

(cherry picked from commit 78515f4)
@clickhouse-gh

clickhouse-gh Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [178ca79]

Summary: ✅

@alexey-milovidov

alexey-milovidov commented Jul 26, 2026 •

Copy link
Copy Markdown
Member Author

The only CI red on commit a8c6125d is unrelated to this backport, which touches only InterpreterAlterQuery.cpp and tests/integration/test_replicated_database/test.py:

  • Stress test (amd_tsan) -> Logical error: Block structure mismatch in after optimization liftUpUnion stream: different columns (STID 0993-23fd), hit by the AST fuzzer inside the stress test on the query SELECT countMerge(*) FROM (SELECT countState(0.5) AS a UNION ALL ...) - divergent aggregate-state types across UNION ALL branches wrapped into a Tuple.

This is a widespread flake reproducing on master and on dozens of unrelated pull requests (CIDB shows it across all base branches for the last two weeks). Tracked by #111185, with a fix in #110745 (not merged yet, hence not present on 26.7).

Merged 26.7 into the branch (clean, no conflicts) to bring in the latest base and retrigger CI.

@clickhouse-gh
clickhouse-gh Bot merged commit 311010b into 26.7 Jul 26, 2026
39 of 40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport-111029-to-26.7 branch July 26, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants