Repository navigation
Remove unused IDisk::chmod and supportsChmod - #133549
alexey-milovidov merged 2 commits into
Conversation
After ClickHouse#133464 removed the background cleanup of unused directories in `store/`, nothing calls `chmod` or `supportsChmod` on a disk, a disk transaction or a metadata storage any more. Remove them at every layer: - `IDisk::chmod`, `IDisk::supportsChmod` and the overrides in `DiskLocal`, `DiskEncrypted`, `DiskObjectStorage` and `ReadOnlyDiskWrapper`; - `IDiskTransaction::chmod` and the overrides in `FakeDiskTransaction`, `DiskEncryptedTransaction` and `DiskObjectStorageTransaction`; - `IMetadataTransaction::chmod`, `IMetadataTransaction::supportsChmod`, `IMetadataStorage::supportsChmod` and every metadata storage override; - `ChmodOperation` of the local metadata storage, and its two cases in `MetadataLocalDiskTest.TestRollbackUndoesOnlyWhatAFailedOperationDid`. `IDisk::stat` and `supportsStat` stay: since ClickHouse#133436 they are used by `StorageReplicatedMergeTree::checkPartsImpl` to compare the inodes of a part and of its copy in `detached/`. Related: ClickHouse#133464 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex) and my own review of the full diff: 0 findings. Session id: cron:clickhouse-review-slot-9:20261122-151102 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261122-144300 |
|
Workflow [PR], commit [a2eec56] Summary: ✅
AI ReviewSummaryRemoves unused Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units810 translation units recompiled, 5519 s compile time in total, 810 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.05 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
|
📊 Cloud Performance Report
This PR only removes the unused chmod/supportsChmod methods from the disk, transaction and metadata-storage interfaces, and no benchmark query calls them. All three flagged ClickBench queries stay inconclusive, and none can be traced to this change. Q30 (+18.9%) and Q31 (+11.4%) are hash aggregations where master's own baseline is unstable after a recent shift. Q28 (-6.4%) is borderline, the two tests disagree, and the measurements were noisy. clickbenchFlagged queries (3 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
|
|
🕵 Merged |
Related: #133464
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Follow-up of #133464, as asked in #133464 (comment). After #133464 nothing calls
chmodorsupportsChmodon a disk, a disk transaction or a metadata storage. This removes them at every layer, together withChmodOperationof the local metadata storage and its two cases inMetadataLocalDiskTest.TestRollbackUndoesOnlyWhatAFailedOperationDid.IDisk::statandsupportsStatstay: since #133436,StorageReplicatedMergeTree::checkPartsImpluses them to compare the inodes of a part and of its copy indetached/.Deletions only. Validation:
clickhouseandunit_tests_dbmsbuild on top of #133464, and the disk and metadata storage gtests pass.Workflow [PR]
Sync PR [sync-upstream/pr/133549]
Version info
26.12.1.295-master(included in26.12and later)