Repository navigation
Remove deprecated XML way to declare a disk resource - #115286
Conversation
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.
|
Workflow [PR], commit [9606371] Summary: ✅
AI ReviewSummaryThis PR removes the deprecated Final VerdictStatus: ✅ Approve LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 15/15 (100.00%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
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 units37 translation units recompiled, 373 s compile time in total, 37 of them have a recent master baseline. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
📊 Cloud Performance Report ✅ AI verdict: 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. clickbenchFlagged queries (2 of 43)
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
|
…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]>
|
🕵 The red
I merged the current |
Related: #108286
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Removed the deprecated
read_resourceandwrite_resourcedisk options fromstorage_configuration. Attach a scheduler resource to a disk withCREATE 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), soCREATE RESOURCE/CREATE WORKLOAD(the SQLWorkloadResourceManager) is already the only way to define resources and workloads. The disk-levelread_resource/write_resourceoptions were the last XML remnant — they only pointed a disk at a resource by name, whichCREATE RESOURCE ... (READ DISK d, WRITE DISK d)(orREAD 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
Workflow [PR]
Sync PR [sync-upstream/pr/115286]
Version info
26.9.1.170(included in26.9and later)