Skip to content

Backport #119850 to 26.7: Do not create a disk defined in SQL while deciding whether ALTER ... MODIFY SETTING disk is allowed - #124150

Merged
clickhouse-gh[bot] merged 3 commits into
26.7from
backport/26.7/119850
Oct 7, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.7from
backport/26.7/119850

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #119850
Cherry-pick pull-request #124004

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

…eciding whether `ALTER ... MODIFY SETTING disk` is allowed
@robot-clickhouse robot-clickhouse 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 6, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [91a38a4]

Summary: ✅

26.7 does not have #110665, so the
`custom_local_disks_base_directory` fence still runs in `getOrCreateCustomDisk`
after the disk is created, skips object storage disks over the local filesystem,
and exempts a disk named `backup`. The cases that depend on that change (local
object storage, `metadata_path`, the `backup` name, and the integration case for
a `locations` child of type `local`) are dropped, and the stateless test checks
only that the `ALTER` is rejected, not that nothing is left behind.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=124150&sha=da3fccc21af70c4f21ec0718646f39d45812d15a&name_0=BackportPR
#124150

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Pushed fixes for the backport tests on 26.7. This release does not have #110665, so the custom_local_disks_base_directory fence still runs after the disk has been created. It also skips object storage disks on the local filesystem and exempts a disk named backup. The code fix is still needed on 26.7: before it, ALTER ... MODIFY SETTING disk = disk(type = local, path = <outside>) on a table with no SETTINGS clause never ran a check of the new disk definition. I removed the test cases that depend on #110665 (local object storage, metadata_path, the backup name, and the integration case test_dynamic_disk_include_locations_child_local_path_is_fenced). The stateless test now checks only that the ALTER is rejected.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=124150&sha=45e06aa4218f1685ea546406575bf58f823d41f9&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29 (Logical error: GroupingAggregatedTransform pushed bucket A twice, STID 3994-4c1d, tracked in #115986) 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 changes the ALTER ... MODIFY SETTING disk check. I merged the latest 26.7 into the branch to re-run CI.

@groeneai

groeneai commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Same abort and same route as #124060 (my analysis there: #124060 (comment)). In this job's server log the dying query 54069bd6-31a8-4b33-9e06-f3265707e647 is again 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.

The fix is #112942. Its 26.7 conflict resolution is #121593, merged into backport/26.7/112942, but no PR carries that branch to 26.7. Re-checked on the current 26.7 tip (4970596c): applyParallelReplicas.cpp:82 is still memory_efficient_aggregation = false, the file is unchanged, and none of the 10 commits since my #124060 check touch the backport's files. So the squash and resolution in #121593 (comment) still apply as written.

The one missing step is that PR from backport/26.7/112942 to 26.7. I cannot open it; it is the question I asked on #124060.

@clickhouse-gh
clickhouse-gh Bot merged commit 6e236b8 into 26.7 Oct 7, 2026
41 of 42 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/119850 branch October 7, 2026 09:19
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