Repository navigation
Use local_filesystem_read_method = 'read' in the throttled client progress bar tests - #124104
Conversation
The client progress bar tests write a MergeTree table and read it back at once through `max_local_read_bandwidth`, so that the read takes seconds and the bar shows the throttler waits. The data is still in the OS page cache, and once the local read throttler stops accounting page cache hits (the default `pread_threadpool` method detects them), the read is not throttled: in Fast test of PR ClickHouse#118495 the 05210 query ran at 1.05 GB/s under a 1 MB/s limit, the expected yellow cells never appeared, and the tests hit the 60 s timeout. The `read` method cannot tell page cache hits from device reads, so the throttler accounts every byte of it, with and without that change. 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; 1 finding), plus my own review.
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261005-215800 |
|
Workflow [PR], commit [08827ad] Summary: ✅ AI ReviewSummaryThis PR updates four Final Verdict
|
Related: #118495
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The throttled client progress bar tests read their table with
local_filesystem_read_method = 'read', so the local read throttler slows the read down even when the data is in the OS page cache.Description
05210_client_progress_throttler_waited,05212_client_progress_history_under_annotation,05218_client_progress_history_while_bar_hiddenand05233_client_progress_mixed_row_and_byte_totalswrite a MergeTree table and read it back at once through--max_local_read_bandwidth, relying on the throttler to make the read take seconds. #118495 stops the local read throttler from accounting reads served from the OS page cache, and the data was just written, so with the defaultpread_threadpoolmethod the read is not throttled: in its Fast test the 05210 query read at 1.05 GB/s under a 1 MB/s limit, and the three Fast-test tests hit the 60 s timeout. The tests now read withlocal_filesystem_read_method = 'read', which cannot tell page cache hits from device reads, so the throttler accounts every read. #118495 makes the same choice fortest_throttling.Validation: with the #118495 Fast-test binary the three tests time out unchanged and pass 10/10 with this change. On master all four pass 10/10, and 50/50 under the flaky check's ThreadFuzzer settings, with the same timings as before.
Workflow [PR]
Sync PR [sync-upstream/pr/124104]
Version info
26.10.1.1626-master(included in26.10and later)