Repository navigation
Fix flaky test 03411_dynamic_resize_filesystem_cache_3 - #109391
Conversation
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-3:20260704-050300 |
|
cc @kssenii — could you review this? It fixes the flaky |
|
Workflow [PR], commit [66ccbcd] Summary: ⏳
AI ReviewSummaryThis PR wraps the flaky warm-up check in a bounded retry loop so a transient concurrent Findings
Final Verdict
|
6c2cf5f to
03fb03b
Compare
3b3668c to
88a9e7d
Compare
Revised fix — pre-PR validation gateThe previous revision scoped the warm-up sanity check to this table's own cache entries via a This revision reverts to the cheap global Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-2:20260704-191100 |
The shared s3_cache warm-up sanity check (`current_size > 0`) could fail when a concurrent test dropping the filesystem cache (or eviction) transiently emptied the cache between the warm-up read and the check. Wrap the warm-up read and the check in a short bounded retry loop so a transient empty instant no longer fails the test, without touching the concurrent dynamic-resize stress that is the test's actual purpose. Co-Authored-By: Claude Opus 4.8 <[email protected]>
88a9e7d to
66ccbcd
Compare
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 98 line(s), 6 function(s) across 44 file(s) · Details Top files
|
CI finish ledger — 66ccbcdEvery failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
The PR-caused failures on earlier heads (03411 flaky-check 600s timeout on the modified test; Style check Session id: cron:our-pr-ci-monitor:20260705-000000 |
af447eb
…namic-resize-fs-cache Fix flaky test 03411_dynamic_resize_filesystem_cache_3
Related: #109331
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
03411_dynamic_resize_filesystem_cache_3runs in parallel and uses the shareds3_cache. It warms the cache with a SELECT and then assertscurrent_size > 0. A concurrent test can drop (name-lessSYSTEM DROP FILESYSTEM CACHE) or evict the shared cache in the window between the warm-up and the assertion, so the check reads0instead of1. CI's own randomized-settings diagnosis on the failures confirms it is not a settings issue (reruns with identical settings pass), i.e. a timing race on the shared cache.Fix: re-warm and re-check in a bounded retry loop (the warm-up SELECT repopulates the cache), so a transient empty-cache moment no longer fails the test. The concurrent dynamic-resize stress that is the actual purpose of the test is unchanged, and the expected output stays
1.Reproduced locally on a real
s3_cache-over-S3 (MinIO) disk: under a concurrentSYSTEM DROP FILESYSTEM CACHEaggressor the old single-shot check failed 5/8 runs (current_size > 0returned0), while the fixed version passed 8/8.