Fix/cache disk thread pool size#101712
Conversation
|
Workflow [PR], commit [4310b07] Summary: ❌
AI ReviewSummaryThis PR fixes cache-disk config parsing by excluding ClickHouse Rules
Final Verdict
|
|
I'm not sure if the failed test is wobbly or related to this change, honestly. If it is somehow related I will try to fix it! |
@Milias Hi! No worries - this isn’t related to your changes |
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
|
Thanks @Michicosun @alexey-milovidov! See reply for the last change. Let me know if you would rather just leave it as is was, without the setting changing anything. |
|
The MSan stress test failure (MemorySanitizer: use-of-uninitialized-value, STID 4179-5154 or 4148-3044) is a known pre-existing issue unrelated to this PR. Fix: #102158 |
…on cache-wrapped disks Pass `thread_pool_size` through as a non-cache key in both `loadFromConfig` and `loadFromCollection`, so it reaches the IDisk layer instead of being rejected as UNKNOWN_SETTING. Rebased onto master after the Cache → FileCache directory rename and renumbered the test from 04077 to 04100. PR: ClickHouse#101712 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c33439a to
4310b07
Compare
LLVM Coverage Report
Changed lines: 90.00% (9/10) · Uncovered code |
0164da0
Description
Hello, I noticed that when using a S3 cached disk the setting
thread_pool_sizecrashes ClickHouse on startup. This is a relatively minor change, just pass through that setting.First time contributing to this repo so please let me know if you would like me to change something!
Thank you :)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixes a crash when
thread_pool_sizeis configured on a cache-wrapped disk. Previously,FileCacheSettings::loadFromConfig()rejectedthread_pool_sizeasan unknown setting, preventing the server from starting. The setting is a valid
IDiskparameter that controls the number of threads used for disk-to-diskcopy operations during background part moves.
Documentation entry for user-facing changes