Skip to content

Use local_filesystem_read_method = 'read' in the throttled client progress bar tests - #124104

Merged
azat merged 1 commit into
ClickHouse:masterfrom
groeneai:client-progress-tests-read-method
Oct 6, 2026
Merged

azat merged 1 commit into
ClickHouse:masterfrom
groeneai:client-progress-tests-read-method

Conversation

@groeneai

@groeneai groeneai commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #118495

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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_hidden and 05233_client_progress_mixed_row_and_byte_totals write 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 default pread_threadpool method 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 with local_filesystem_read_method = 'read', which cannot tell page cache hits from device reads, so the throttler accounts every read. #118495 makes the same choice for test_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

  • Merged into: 26.10.1.1626-master (included in 26.10 and later)

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]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-request PR origin: a maintainer pinged or directed groeneai labels Oct 5, 2026
@groeneai

groeneai commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 1 finding), plus my own review.

# Sev Finding Verdict Evidence / action
1 ⚠️ The 05233 pin is unnecessary: on #118495 the test passes without it, the S3 phase already turns the bar yellow DISAGREE On #118495 the pin brings the local read of the second phase from 0.14 s back to 7.14 s, as the test's own comment describes. #118495 pins read the same way in test_throttling reads that pass without it.
2 💡 The title did not name the setting AGREE, fixed Title names local_filesystem_read_method = 'read'

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are
terminal per finding.

Session id: cron:clickhouse-review-slot-10:20261005-215800

@clickhouse-gh

clickhouse-gh Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [08827ad]

Summary: ✅


AI Review

Summary

This PR updates four expect-based client progress tests to force local_filesystem_read_method = 'read', so the local read throttler still produces the waited annotation and yellow history segments after #118495 stopped charging OS page-cache hits for the default pread_threadpool path. I did not find a correctness or coverage regression in that adjustment: it preserves the contract these tests actually exercise (client rendering under throttled local reads), matches the new throttling semantics in the current code, and the current Praktika run for 2026-10-05 is green, including Fast test.

Final Verdict
  • Status: ✅ Approve

@azat
azat enabled auto-merge October 5, 2026 22:28
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Oct 5, 2026
@azat
azat added this pull request to the merge queue Oct 6, 2026
Merged via the queue into ClickHouse:master with commit cbe8b27 Oct 6, 2026
149 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 6, 2026
@clickhouse-gh clickhouse-gh Bot added comp-cli clickhouse-client (interactive CLI) and client library. and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-cli clickhouse-client (interactive CLI) and client library. groeneai-origin-request PR origin: a maintainer pinged or directed groeneai pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants