Repository navigation
Fix flaky test 02317_distinct_in_order_optimization_explain - #125742
alexey-milovidov merged 1 commit into
Conversation
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]>
|
Workflow [PR], commit [9fd9a9c] Summary: ✅ AI ReviewSummaryThis test-only fix disables Final Verdict✅ Approve |
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own cold review (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261014-062500 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261014-061000 |
|
cc @serxa, could you review this and add the |
4efc791
Bring in the upstream fix for flaky `02317_distinct_in_order_optimization_explain` while keeping the projection codec changes on current master. Related: ClickHouse#125742 Related: ClickHouse#120281
Related: #125085
Related: #125715
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Description
Since #125085, an auto
max_threadsis lowered to the fair share of CPU slots under load. The two--max_threads=0checks ofalgorithm: Threadcan then get one stream,ReadFromMergeTreereads in order, and the line disappears. Failures on three unrelated PRs: #125715 arm_binary, #112805 Fast test, #125717 Fast test. In the arm_binary server log, the failing query hasLower number of threads for query to the fair share of CPU slots 1 (32 requested).The fix adds
--use_concurrency_control_for_max_threads=0to those two invocations, as #125715 does for02149_read_in_order_fixed_prefix.Validation (debug build): with
concurrent_threads_soft_limit_num = 1on the server (fair share always 1), the old test fails 20/20 with the CI diff, and the fixed one passes 50/50 with randomized settings. The fixed test also passes 50/50 with the default server config.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125742]
Version info
26.10.1.2418-master(included in26.10and later)