Skip to content

Backport #123640 to 26.7: Give back fully consumed CPU slots when the last running thread is preempted - #124060

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

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

Conversation

@robot-ch-test-poll

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

Copy link
Copy Markdown
Contributor

Original pull-request #123640

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.23.10

@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 5, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [9137d28]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=124060&sha=238707c0000933f312db78c4cfff2898f0084a7a&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 (Logical error: GroupingAggregatedTransform pushed bucket A twice and the resulting Server died) 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 CPULeaseAllocation), tracked by #115986, and recurs across many 26.7 backport PRs in the same job.

@groeneai

groeneai commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

The fix is in progress, one step short of 26.7.

This is the same abort as #119753 (my analysis: #119753 (comment)). Pinned again from this job's server log: query b7c045f1-01e9-4187-adb8-540be998b273 is 04605_parallel_replicas_merging_aggregated_bucket_order.sh (enable_parallel_replicas = 1, parallel_replicas_plan_based = 1, distributed_aggregation_memory_efficient = 1), with no Shuffle, Scatter or Exchange step in its plan. 26.7 still builds the per-shard replica merge with const bool memory_efficient_aggregation = false (applyParallelReplicas.cpp:82), which #112942 fixed on master.

Where #112942 stands for 26.7:

The remaining step is to squash backport/26.7/112942 into one commit and open the PR to 26.7, as described in #121593 (comment). Re-checked on today's 26.7 (976e798e): the squash still conflicts only in that one hunk of applyParallelReplicas.cpp, and 26.7's side of the file is unchanged, so the resolution given there applies as written. I cannot do this step (no push access, and I do not open PRs against release branches). Could you do it?

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.

5 participants