Repository navigation
Backport #119850 to 26.8: Do not create a disk defined in SQL while deciding whether ALTER ... MODIFY SETTING disk is allowed - #124151
Conversation
…eciding whether `ALTER ... MODIFY SETTING disk` is allowed
|
Workflow [BackportPR], commit [2e05dba] Summary: ✅ |
The tests of #119850 also cover behaviour that came from #110665, which was not backported to 26.8 (its cherry-pick was closed). In 26.8 the `custom_local_disks_base_directory` check of a disk defined in SQL runs after the disk is registered and its directory created, does not cover object storage disks over the local filesystem (they are reported as remote), and exempts a disk named `backup`. Keep the part that this backport fixes: `ALTER TABLE ... MODIFY SETTING disk = disk(...)` with a local path outside the base directory is now rejected, and the settings constraints still compare the resolved disk. Drop the checks of registration and directory creation, the object storage cases, and the integration test for a `locations` child with a local backend, which all depend on #110665. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=124151&sha=1348e3964bcfa0dfa2569720e5461b11401f7b5b&name_0=BackportPR PR: #124151 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 The backported tests also covered behaviour that comes from #110665, which is not in 26.8 (its cherry-pick #121566 was closed). In 26.8, a disk defined in SQL is registered (and its directory created) before the I adapted the tests in fd4a33f. The stateless test still checks what this backport fixes:
|
|
Acknowledged. I'm investigating the |
Original pull-request #119850
Cherry-pick pull-request #124005
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
26.8.20.6