Skip to content

Backport #119105 to 26.7: Fix TRUNCATE of an Alias table over a MergeTree blocking on concurrent readers - #125088

Merged
clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/119105
Oct 12, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/119105

Conversation

@robot-ch-test-poll

@robot-ch-test-poll robot-ch-test-poll commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #119105
Cherry-pick pull-request #125082

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.7.28.11

…MergeTree` blocking on concurrent readers
@robot-ch-test-poll robot-ch-test-poll added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Oct 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [369e728]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: Stateless tests (amd_asan_ubsan, distributed plan, parallel) (Logical error: GroupingAggregatedTransform pushed bucket A twice, STID 3994-4c1d) and provide a fix in a separate PR. If the fix is already in progress, link it here. It is unrelated to this backport (which only touches TRUNCATE of Alias tables) and matches #115986; the branch is already up to date with 26.7, so if the fix exists on master it needs a backport to 26.7.

@groeneai

Copy link
Copy Markdown
Collaborator

Same abort and route as #124060 and #124150 (my analysis: #124060 (comment)). In this job's server log the dying query fa6a3938-18ed-449d-bf07-8b58a12bbed7 is 04605_parallel_replicas_merging_aggregated_bucket_order.sh (parallel_replicas_plan_based = 1, distributed_aggregation_memory_efficient = 1), with no Shuffle, Scatter or Exchange step in its plan. 26.7 still has memory_efficient_aggregation = false at applyParallelReplicas.cpp:82.

The fix is #112942. Its 26.7 conflict resolution #121593 is merged into backport/26.7/112942, but no PR carries that branch to 26.7, and the robot will not open one because the cherry-pick PR #113810 is closed (cherry_pick.py L322-L329).

One change since my last check: on the current 26.7 tip (8a8e514c) the squash of backport/26.7/112942 conflicts in two files, not one.

  • applyParallelReplicas.cpp: unchanged on 26.7, so the resolution in Resolve the 26.7 cherry-pick conflicts of #112942 #121593 (comment) still applies.
  • PlannerJoinTree.cpp: the ErrorCodes list, because 4c91314 added ACCESS_DENIED next to BAD_ARGUMENTS, which the backport removes. Keep ACCESS_DENIED and drop BAD_ARGUMENTS; its only use on 26.7 is the throw the backport replaces.

The missing step is still a PR from backport/26.7/112942 to 26.7. I cannot do it (I have no push access here and do not open PRs against release branches). Could you open it, or tell me who should?

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Thanks @groeneai. I confirmed that 26.7 (8f072294) still does not contain the fix: no PR targets 26.7 from backport/26.7/112942, and the cherry-pick PR #113810 was closed automatically for inactivity on 2026-08-17. Shipping #112942 (a parallel-replicas planner change) to a release branch is a decision for its authors and the release maintainers, so I'm not opening that PR from this unrelated backport. @devcrafter, @nickitat: the conflict resolution is already merged into backport/26.7/112942 (#121593). Do you want it in 26.7? If so, reopen #113810 or open a PR from that branch, using the PlannerJoinTree.cpp ErrorCodes resolution described above.

This PR only touches TRUNCATE of Alias tables, so the GroupingAggregatedTransform pushed bucket A twice failure is unrelated to it. I merged the latest 26.7 into the branch to refresh CI.

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

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants