Skip to content

Remove deprecated XML way to declare a disk resource - #115286

Merged
serxa merged 3 commits into
masterfrom
remove-deprecated-disk-resource-xml
Aug 26, 2026
Merged

serxa merged 3 commits into
masterfrom
remove-deprecated-disk-resource-xml

Conversation

@serxa

@serxa serxa commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Related: #108286

Changelog category (leave one):

  • Backward Incompatible Change

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Removed the deprecated read_resource and write_resource disk options from storage_configuration. Attach a scheduler resource to a disk with CREATE RESOURCE name (READ DISK disk, WRITE DISK disk) instead.

Why this is safe

Declaring IO scheduler resources in XML has already been removed: #108286 deleted the XML-based CustomResourceManager (the <resources> config section), so CREATE RESOURCE / CREATE WORKLOAD (the SQL WorkloadResourceManager) is already the only way to define resources and workloads. The disk-level read_resource / write_resource options were the last XML remnant — they only pointed a disk at a resource by name, which CREATE RESOURCE ... (READ DISK d, WRITE DISK d) (or READ ANY DISK / WRITE ANY DISK) already expresses from the resource side. They were redundant, so this removes them together with the matching documentation.

The keys are ignored, not rejected — deliberately: the option has been deprecated for a long time, and throwing on a config that still carries it would crash servers on upgrade. A disk that still lists the keys keeps starting and simply uses whatever resource is bound to it via SQL (or none if there is none).

What to use instead

CREATE RESOURCE network_read (READ DISK s3);
CREATE RESOURCE network_write (WRITE DISK s3);

Workflow [PR]
Sync PR [sync-upstream/pr/115286]

Version info

  • Merged into: 26.9.1.170 (included in 26.9 and later)

The read_resource/write_resource disk options in storage_configuration
were the last remaining use of XML-based resource declaration after the
CustomResourceManager was removed. A resource is now bound to a disk only
via CREATE RESOURCE ... (READ DISK / WRITE DISK). Remove the config parsing
and the corresponding documentation.
@clickhouse-gh

clickhouse-gh Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9606371]

Summary: ✅


AI Review

Summary

This PR removes the deprecated read_resource / write_resource disk options from DiskObjectStorage, so disk IO scheduling now comes only from CREATE RESOURCE ... (READ DISK ...), CREATE RESOURCE ... (WRITE DISK ...), and READ ANY DISK / WRITE ANY DISK bindings. I re-checked the previously raised migration concern against the current code and PR metadata; the old keys becoming ignored no-ops is intentional, the migration path is documented, and I did not find a remaining correctness, safety, or documentation issue in the current diff.

Final Verdict

Status: ✅ Approve

LLVM Coverage Report

Metric Baseline Current Δ
Lines 87.00% 87.00% +0.00%
Functions 91.90% 91.90% +0.00%
Branches 79.20% 79.20% +0.00%

Changed lines: Changed C/C++ lines covered: 15/15 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-backward-incompatible Pull request with backwards incompatible changes label Aug 18, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 960637160 with master cbe74c846 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of f16824e50; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 705.68 MiB 702.65 MiB -3.03 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

37 translation units recompiled, 373 s compile time in total, 37 of them have a recent master baseline.

Job report

@serxa
serxa marked this pull request as ready for review August 20, 2026 11:46
@alexey-milovidov alexey-milovidov self-assigned this Aug 20, 2026
@serxa
serxa enabled auto-merge August 20, 2026 20:00
@mintlify

mintlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🟢 Ready View Preview Aug 21, 2026, 11:27 AM

@clickhouse-gh

clickhouse-gh Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 38 queries analysed

Release-transition baseline: compared against the last 26.8 master because no 26.9 master baseline exists at or before the trusted base-commit anchor.

Both the public and private diffs are identical: they remove the deprecated XML read_resource/write_resource IO-scheduling config path from object-storage disks (plus the matching docs). That code only matters when workload scheduling is configured, which the benchmark does not use, so it cannot affect ClickBench query execution. Q28 (-7.3%) and Q32 (-5.5%) were already flagged not_sure due to disagreement between the two tests, and with the changed code off both query paths these small improvements are run-to-run variance rather than a real PR effect.

clickbench

⚠️ 2 inconclusive

Flagged queries (2 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 28 not_sure 1125 1043 -7.3% <0.0001 The PR only removes the deprecated XML read_resource/write_resource IO-scheduling config path, which this SELECT never exercises; the -7.3% is run-to-run variance, consistent with the mixed test signals.
⚠️ 32 not_sure 1378 1302 -5.5% 0.0026 Same story as Q28: the deprecated IO-scheduling config removal cannot touch this query's execution path, so the -5.5% is variance, matching the borderline test agreement.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: 8e870018-94b9-4b1d-9428-33adbcf16077
  • MIRAI run: 17c560d4-88a9-4f17-8c70-1fb80923fb00
  • PR check IDs:
    • clickbench_452368_1787748086
    • clickbench_452374_1787748085
    • clickbench_452386_1787748085
    • tpch_adapted_1_official_452397_1787748085
    • tpch_adapted_1_official_452408_1787748085
    • tpch_adapted_1_official_452438_1787748085

alexey-milovidov and others added 2 commits August 23, 2026 23:00
…ry-metadata copy constructor

Master added a `DiskObjectStorage` copy constructor (for `wrapWithMemoryMetadata`)
that copied `read_resource_name_from_config` / `write_resource_name_from_config`,
which this PR removes. The merge with master was textually clean but did not compile;
drop the two assignments.

Co-Authored-By: Claude Fable 5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The red CH Inc sync check is not caused by this PR. The private sync run had three failing stateless jobs, all unrelated to the read_resource/write_resource removal:

I merged the current master into the branch (one semantic fixup: master added a DiskObjectStorage memory-metadata copy constructor that copied the removed *_resource_name_from_config members) and pushed, which re-runs CI and the sync.

@serxa
serxa added this pull request to the merge queue Aug 26, 2026
Merged via the queue into master with commit e843661 Aug 26, 2026
178 checks passed
@serxa
serxa deleted the remove-deprecated-disk-resource-xml branch August 26, 2026 14:36
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 26, 2026

This branch was successfully deployed

1 active deployment
staging - docs — 96063716 Deployed Aug 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backward-incompatible Pull request with backwards incompatible changes pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants