Repository navigation
Sync changes - #109203
Sync changes#109203
Conversation
Copy the FileCache- and DistributedCache-related changes made in `clickhouse-private` master into the files that already exist in the public repository (no new files added), and make the public build self-contained by keeping the distributed-cache-only headers private. FileCache/DistributedCache sync (public files updated to match private): `FileCache`, `IFileCachePriority`, `LRU`/`SLRU`/`Split` `FileCachePriority`, `EvictionCandidates`, `Metadata`, `CacheUsage.h`, `FileCacheSettings`, `FileSegment`, `CachedOnDiskReadBufferFromFile`, `CachedOnDiskWriteBufferFromFile`, `StorageSystemFilesystemCache`, `gtest_filecache`, the cache/distributed-cache entries in `FailPoint` and `ProfileEvents`, and the corresponding public filesystem-cache tests. `FilesystemCacheSettings` in `ReadSettings.h` gains `temp_cache_only`, used by `CachedOnDiskReadBufferFromFile` for distributed-cache temporary data. The overcommit code paths that reference the private-only `OvercommitFileCachePriority` are guarded by `#if ENABLE_DISTRIBUTED_CACHE`, which is off in the public build, so this builds without the new files. Make `DistributedCacheDefines.h` and `DistributedCacheSettings.h` private-only: remove them here and guard every usage under `#if ENABLE_DISTRIBUTED_CACHE`. - `Settings.cpp`: guard the include; the `default_distributed_cache_*` constants use `DistributedCache::` under the macro and literal fallbacks otherwise. - `ReadSettings.h`/`WriteSettings.h`: guard the include and the `distributed_cache_settings` member; include `Core/Types.h` directly (it was previously pulled in transitively via `DistributedCacheSettings.h`). - `ReadPipeline.cpp` and `MergeTreeSequentialSource.cpp`: guard the two remaining unguarded `distributed_cache_settings` accesses. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Workflow [PR], commit [9c7f257] Summary: ✅
AI ReviewSummaryThis PR syncs a large Missing context / blind spots
Final Verdict
|
6eda00e to
95d1bc4
Compare
The module-level `cache_dynamic_resize_config` config string was removed together with `test_readonly_cache` and `test_no_background_download_for_metadata_files`, but `test_dynamic_resize` and `test_dynamic_resize_disabled` still use it, tripping the `F821` undefined-name style check. Restore the definition. Co-Authored-By: Claude Opus 4.8 <[email protected]>
95d1bc4 to
9c7f257
Compare
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 268/418 (64.11%) · Uncovered code |
|
📊 Cloud Performance Report ✅ AI verdict: Every flagged query is an apparent improvement, and the deterministic gates already suppressed all of them: six sit inside master's current variance band and two are borderline with disagreeing tests. This PR only touches distributed-cache defaults and filesystem-cache eviction/write-through internals, none of which are on the ClickBench SELECT read path, so the consistent small speedups across Q4, Q15, Q18, Q28, Q32, Q33 and Q34 are a baseline/run-to-run shift rather than a PR effect. No action needed; the no-change verdicts are correct. 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
|
…changes Sync changes
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Version info
26.7.1.767(included in26.7and later)