Repository navigation
Fix flaky test 02149_read_in_order_fixed_prefix - #125715
Conversation
Since #125085, `max_threads = auto` is lowered to the fair share of CPU slots of `ConcurrencyControl` when other queries are running. Under the concurrent load of the test runner the read in order can be planned with a single stream, so both parts are read by one `readInOrder` call and `EXPLAIN PIPELINE` shows `ReverseTransform × 2` instead of two separate chains. Disable `use_concurrency_control_for_max_threads` in the test, as its output depends on the number of streams. Failed in the merge queue of #118315: https://github.com/ClickHouse/ClickHouse/actions/runs/38491344800/job/115617405459 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [4d071db] Summary: ✅ AI ReviewSummaryPR #125715, reviewed at Final VerdictStatus: ✅ Approve. No changes requested. The target test passed in current-head Fast test and the earlier parallel stateless run. Current-head parallel stateless jobs are still running. |
|
🕵 The only failure, |
Since ClickHouse#125085 an auto `max_threads` is lowered to the fair share of CPU slots (`getEffectiveMaxThreads`). Under the test runner's concurrent load the two `--max_threads=0` EXPLAIN PIPELINE checks of `algorithm: Thread` can get a single stream; `ReadFromMergeTree` then reads in order (`readInOrder` instead of `readFromPool`) and the line disappears. The failing arm_binary job's server log shows `fair share of CPU slots 1 (32 requested)` for exactly the query that lost its line. Pin `use_concurrency_control_for_max_threads = 0` on those two invocations, as ClickHouse#125715 does for `02149_read_in_order_fixed_prefix`. The other invocations do not depend on the number of streams. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 The only failure, |
…-session-datatypes-125476 Takes ClickHouse#125715 (the flaky `02149_read_in_order_fixed_prefix` stopped the Fast test of the previous run). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Backporting to fix CI |
Backport #125715 to 26.10: Fix flaky test `02149_read_in_order_fixed_prefix`
Since #125085,
max_threads = autois lowered to the fair share of CPU slots ofConcurrencyControlwhen other queries are running. Under the concurrent load of the test runner, the read in order of02149_read_in_order_fixed_prefix(which setsmax_threads = 0) can be planned with a single stream. Both parts are then read by onereadInOrdercall andEXPLAIN PIPELINEshowsReverseTransform × 2instead of two separate chains. This is exactly the output ofmax_threads = 1.The test now disables
use_concurrency_control_for_max_threads, as its output depends on the number of streams.It failed in the merge queue of #118315: https://github.com/ClickHouse/ClickHouse/actions/runs/38491344800/job/115617405459 (the next merge-queue entry, built on top of the same commit, passed).
Related: #125085
Related: #118315
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125715]
Version info
26.10.1.2510-master(included in26.10and later)26.10.3.17