Repository navigation
Reject an SLRU filesystem cache whose file segment does not fit each queue - #125817
Conversation
… each queue With the SLRU policy, a file segment larger than the protected or the probationary queue cannot be cached whole. Reject such a configuration when a cache disk is created (not on ATTACH), at startup and on config reload.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Workflow [PR], commit [5fb7200] Summary: ❌
AI ReviewSummaryThe PR rejects Missing context / blind spots
Findings❌ Blockers
Tests
Final VerdictStatus: ❌ Block. Minimum actions: provide a working upgrade/attachment migration path, enforce the bound against effective reload settings and retained ranges, and account for filesystem-block rounding. Add the focused regressions above. No new inline findings were posted because each outstanding issue already has a discussion thread. |
…ent-size-rule # Conflicts: # tests/queries/0_stateless/02344_describe_cache.reference
…ent-size-rule # Conflicts: # tests/queries/0_stateless/02344_describe_cache.reference
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 9 s compile time in total, 7 of them have a recent master baseline. |
…u-rule Fix 26.9 upgrade check after #125817
…ru-rule Fix 26.10 upgrade check after #125817
…ru-rule-02908 Fix 26.10 upgrade check after #125817, part 2
…u-rule-02908 Fix 26.9 upgrade check after #125817, part 2
…chain `find_master_builds` walked `master_commits`, the raw `commits?sha=master` listing that Config Workflow fetches when it runs. A re-run (for example after the `can be tested` label lands hours after the PR event) runs Config Workflow again, so the listing is the current master, while the checkout, `tests/config` and `ci/` stay those of the original merge commit. The downloaded binary can then be newer than the tree it is started with. After ClickHouse#125817 added a startup check that a filesystem cache's `max_file_segment_size` fits each SLRU queue, such binaries exit with BAD_ARGUMENTS on the older trees' 1Mi cache disk (`tests/config/config.d/storage_conf_03517.xml`), and the changed tests never run. In the public repository walk `master_track_commits_sha` instead: the first-parent chain from the merge commit's master parent, already stored for every PR and used by the performance, build-profile diff, coverage and parser-memory jobs. The binary is then the newest built master commit that the tested tree contains. Like those jobs, it does not fall back to the unanchored listing: a chain without a built commit fails the job. Synced private PRs keep `master_commits`, because their own master commits have no public builds. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With
SLRU, a file segment larger than an SLRU queue cannot be cached whole. Such a cache is now rejected:max_file_segment_sizemust fit each queue. The check is a part of the cache settings validation.Test caches smaller than 80 MiB now use smaller file segments.
Related: #125657
Related: #123607
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
A filesystem cache with the
SLRUpolicy (the default) now requiresmax_file_segment_size <= max_size * min(slru_size_ratio, 1 - slru_size_ratio)(of each part withuse_split_cache), so that a file segment fits whole into each SLRU queue. With the default settings, a cache smaller than 80 MiB must set a smallermax_file_segment_size(andboundary_alignment); otherwise creating the cache disk, server startup or config reload fails. This also applies when an existing table with such a cache disk is attached.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125817]
Version info
26.11.1.567-master(included in26.11and later)