Repository navigation
Throttle reading in the first subtest of 05238_pretty_squash_broken_pipe - #125102
alexey-milovidov merged 2 commits into
Conversation
…pipe` The first subtest fails in `Fast test (arm_darwin)` with exit code 241 (MEMORY_LIMIT_EXCEEDED) or the 60 s timeout. `numbers(1e18)` never leaves the 50 ms squash gap, so the first squashed table holds everything read before the background thread first writes (17.7M-19.3M rows on Linux), and `output_format_pretty_max_rows=1e12` renders all of it before the first byte reaches `head`. Its size depends on host throughput; on the macOS runner it is not rendered within the timeout or exceeds the memory limit. Cap reading at 1M rows/s (`timeout_before_checking_execution_speed=0` because the throttle is otherwise off for the first 10 s): the source then sleeps longer than the squash window after each block, so every table is one block (65411 lines). The subtest still writes every block into the broken pipe and must exit with 75; on 26.9.9.28 (without ClickHouse#117005) it reports "did not stop" (124). 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; 0 findings) plus my own cold review of the diff (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261010-205900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261010-202700 |
|
Workflow [PR], commit [b7c1574] Summary: ✅ AI ReviewSummaryThis PR makes the first Final VerdictStatus: ✅ Approve |
CI finish ledger - 8c1b535Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261011-013008 |
…ty-squash-first-subtest
Related: #117005
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05238_pretty_squash_broken_pipe(added by #117005) fails inFast test (arm_darwin)in 12 of 320 runs, on 12 unrelated PRs, always in its first subtest:Unexpected exit code 241(MEMORY_LIMIT_EXCEEDED) 1-3 s after the subtest starts (#124727), or the 60 s timeout withhead -n 1still waiting for its first line (#118942).With a non-zero
output_format_pretty_squash_consecutive_ms,PrettyBlockOutputFormatonly appends blocks until the producer pauses for 50 ms, andnumbers(1e18)never pauses. So the first table holds everything read before the background thread first writes, and because the test raisesoutput_format_pretty_max_rowsto 1e12, the whole table is rendered before its first byte reaches the pipe. Its size is throughput times the time to the first write (17.7M-19.3M rows here); on the macOS runner it is not rendered within 60 s or grows past the memory limit.The subtest now reads at most 1M rows/s (
max_execution_speed, withtimeout_before_checking_execution_speed=0because the throttle is otherwise off for the first 10 s). The source then sleeps longer than the 50 ms squash window after each block, so every table is one block. The subtest still writes every block into the broken pipe and must stop with exit code 75. The format is unchanged: only the test's ownoutput_format_pretty_max_rows=1e12makes the first table this expensive to render.Validation on Linux (macOS only through this PR's CI):
Prettyformats as soon as it arrives #117005) the new subtest reports "did not stop" (exit 124, 3/3): it still catches its bug.Workflow [PR]
Sync PR [sync-upstream/pr/125102]
Version info
26.10.1.2146-master(included in26.10and later)