Skip to content

Do not reject a query when index analysis has more parts than threads - #116822

Merged
azat merged 7 commits into
ClickHouse:masterfrom
groeneai:fix-index-analysis-schedule-queue-bound
Oct 6, 2026
Merged

azat merged 7 commits into
ClickHouse:masterfrom
groeneai:fix-index-analysis-schedule-queue-bound

Conversation

@groeneai

@groeneai groeneai commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed a spurious Cannot schedule a task: no free thread ... (CANNOT_SCHEDULE_TASK) error that rejected a valid SELECT over a MergeTree table when it had more parts to analyse than the query had threads and their analysis took longer than lock_acquire_timeout. Index analysis now runs one pool job per thread instead of one per part, which also makes it faster for queries over many parts.

Description

Closes: #122556
Related: #116376

On 26.8, a valid SELECT over a MergeTree table with more parts to analyse than threads is rejected with Code: 439 ... no free thread (CANNOT_SCHEDULE_TASK) when every in-flight analysis stalls past lock_acquire_timeout. Six CI occurrences in 60 days, most recently here.

Root cause: filterPartsByPrimaryKeyAndSkipIndexes scheduled one job per part into a private pool whose queue holds num_threads jobs, so with more parts than threads the submitter blocked on its own full queue until lock_acquire_timeout, and every part paid a thread-group attach and detach.

Now min(num_threads, parts) jobs are scheduled. Each attaches once and takes parts from a shared counter until none are left or a failure finishes the pool, so parallelism and per-part balancing are unchanged. The submitter no longer waits for its own queue, so the timed scheduleOrThrow becomes scheduleOrThrowOnError; global pool saturation still fails fast (failed to start the thread): local workers are created with a zero-wait schedule. 05060_thread_pool_schedule_timeout_chrono_overflow is removed: index analysis no longer reads lock_acquire_timeout (still covered by 04327_wait_timeout_chrono_overflow).

The patch proposed in #122556 declared its counters after the pool: with injected thread allocation failures an ASan build of that shape reported stack-use-after-scope within 11 queries, while this one ran 2000 such queries with no report.

On x86 (release build, warm caches, tables and queries from #122556, max_threads = 4):

  • pool jobs per query over 1000 parts: 1004 -> 8;
  • within one server, parallel analysis over 1000 parts took 1.61x-1.68x the time of max_threads_for_indexes = 1 before and 1.05x-1.07x after (4 servers each);
  • hasToken over 1000 parts: median -34% to -40% in 7 server pairs; queries that do not reach this code differ by up to 18% between servers.

The new test fails 20/20 without the scheduling change, passes 50/50 randomised, and asserts that its injected stall ran.


Workflow [PR]
Sync PR [sync-upstream/pr/116822]

Version info

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

A valid SELECT over a MergeTree table could fail with

  Code: 439. DB::Exception: Cannot schedule a task: no free thread
  (timeout=60000000) (threads=3, jobs=3). (CANNOT_SCHEDULE_TASK)

raised from filterPartsByPrimaryKeyAndSkipIndexes, after waiting out
lock_acquire_timeout on an otherwise healthy server.

The private pool for parallel index analysis is built with the four-argument
ThreadPool constructor, which sets queue_size equal to max_threads, i.e. to
num_threads = min(num_streams, parts_with_ranges.size()). The loop below it
submits one job per part. So whenever a table has more parts to analyse than
the query has streams, the loop submits more jobs than its own queue can hold.
The predicate that then blocks is about the queue rather than about threads
(ThreadPool.cpp: !queue_size || scheduled_jobs < queue_size || finished), so
the submitter waits for lock_acquire_timeout and reports "no free thread", a
message that misdescribes its own condition. The in-flight jobs are slow
because index analysis blocks in MergeTreeMarksLoader on the server-wide marks
pool. CI randomises max_threads down to 1..3 in most runs, which is why every
observed occurrence reports threads=2, jobs=2 or threads=3, jobs=3.

Schedule those jobs with scheduleOrThrowOnError, so a full queue means waiting
for a slot instead of rejecting the query.

The bound being removed was never the guard against global thread pool
saturation that the comment above the loop described. Local pool worker
creation goes through a different branch of scheduleImpl, reached before the
queue-full wait, bounded by max_threads alone: it uses a zero-wait global
schedule and fails immediately with "failed to start the thread". That was
already true when the timeout was introduced in dc677f0, and it is
unchanged here, so a query that cannot get a worker at all still fails fast.
The comment is deleted because after this change it describes neither the code
nor a real protection, and the now-unused lock_acquire_timeout extern goes with
it: the executor no longer consults a lock-acquisition setting to decide
whether a SELECT may proceed.

The regression test needs an injected delay, because no existing failpoint sits
anywhere on the index-analysis path and lock_acquire_timeout is measured in
whole seconds, so nothing else outlasts it deterministically. The new
slowdown_index_analysis_per_part failpoint is placed inside process_part so
that the inline num_threads <= 1 path carries the same instrumentation, is
inert unless explicitly enabled, and compiles away when USE_LIBFIU is off. The
test asserts the fixture is armed without relying on wall-clock timing: it
checks the active part count and the failpoint's enabled flag, and ends with a
failpoint-off control query.

Without this change the test fails 20 out of 20 runs with the error above; with
it, 20 out of 20 pass, and 50 randomised runs pass.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-request PR origin: a maintainer pinged or directed groeneai labels Aug 28, 2026
@groeneai

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

Pre-publication review by an independent model (engine: codex; 2 findings), plus 2 findings from my
own cold review of the resulting tree. No fix round was needed.

# Sev Finding Verdict Evidence / action
1 ⚠️ The new test could pass with the injected delay never reached, or with the third per-part analysis job silently omitted (05045_index_analysis_more_parts_than_threads.sql) DISAGREE Both refuted by measurement. Delay reached: same binary, same file, failpoint off passes in 0.069 s, failpoint on takes 6.24 to 6.30 s in 70 of 70 runs. All three parts analysed: 6.25 s is exactly ceil(3 parts / 2 threads) = 2 waves of 3 s, where two parts would be one wave of about 3.1 s. Silent omission is unreachable in code anyway: scheduleOrThrowOnError either waits for a queue slot or throws (ThreadPool.cpp:465-475), and pool.wait() waits for scheduled_jobs == 0 then rethrows the first exception (:659-680). Without the schedule change the same file fails 20 of 20 with the literal no free thread (timeout=1000000) (threads=2, jobs=2). The suggested remedy is an upper bound on wall clock, which is the class of assertion that becomes unsatisfiable under full suite load, so it is not added; the two arming assertions already cover the realistic vacuity paths (parts collapsing to one, failpoint removed).
2 💡 The visible Related: #116376 line should use a full GitHub URL DISAGREE The full URL is already in the relationship block the template asks for it in. The short form under ### Description is separate and deliberate: the provenance link has to be visible in the rendered body, not only inside the leading HTML comment.
3 💡 If the query in the new test throws, SYSTEM DISABLE FAILPOINT is skipped and the failpoint leaks into the rest of that job's sequential batch AGREE, noted .sql tests run without --ignore-error, so the client stops at the first error. Left as is: this is the shape every existing .sql failpoint test uses, and it can only fire when the test is already red. A .sh rewrite with a trap would be strictly more robust.
4 💡 lock_acquire_timeout = 1 in the new test is load-bearing but unexplained, and the fixed code no longer reads that setting AGREE, noted It is what makes a reverted fix fail in about 3 s instead of 60 s. Worth one line of comment next time the file is touched.

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

Session id: cron:clickhouse-review-slot-8:20260828-014400

@clickhouse-gh clickhouse-gh Bot closed this Aug 28, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Aug 28, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. New test with a 3000 ms failpoint in process_part, 3 parts, max_threads = 2, lock_acquire_timeout = 1. Without the change: 20/20 runs fail with Code: 439 ... no free thread (timeout=1000000) (threads=2, jobs=2).
b Root cause explained? The private pool is built with the four-argument ThreadPool constructor, so queue_size == max_threads == min(num_streams, parts), while the loop submits one job per part. With more parts than streams the submitter blocks on a FULL QUEUE (ThreadPool.cpp:465 tests scheduled_jobs < queue_size, not free threads), waits out lock_acquire_timeout and rejects the query. The in-flight jobs are slow because index analysis blocks on the server-wide marks pool.
c Fix matches root cause? Yes. scheduleOrThrowOnError removes the self-inflicted bound at the one call that produces the rejection. Net source diff +1/-9; no widened bound, no no-random-* tag, no defensive check, no setting added.
d Test intent preserved / new tests added? New regression test 05045_index_analysis_more_parts_than_threads, with two non-timing arming assertions (active part count is 3; the failpoint's enabled flag in system.fail_points) and an in-test failpoint-off control. No existing test weakened or removed.
e Both directions demonstrated? Yes, same test and same failpoint on both binaries: base 20/20 FAIL with the exact error, fix 20/20 PASS with the correct result. Plus a discriminating control on one binary: max_threads = 8 (so num_threads == parts) passes 10/10 while max_threads = 2 fails 10/10, which pins the trigger to parts > num_streams.
f Fix is general across code paths? All three callers of filterPartsByPrimaryKeyAndSkipIndexes reach this one loop, so one change covers them all. Swept src/ for the same shape: exactly one other site combines a four-argument pool, a loop that can exceed max_threads and a bounded-wait schedule (Dictionaries/HashedDictionary.h), and it already carries an inline fallback, so it cannot raise this error. Nine further sites share the shape but already use scheduleOrThrowOnError. No sibling is an unfixed instance.
g Fix generalizes across inputs (params/datatypes/wrappers)? Not type-dispatched: this is thread-pool plumbing, with no data-type, wrapper or nullability axis. The relevant axis is the parts vs num_streams relation, and after the change the schedule no longer depends on it. max_threads_for_indexes can make num_threads exceed the part count; fine for the same reason. num_threads <= 1 takes the pre-existing inline path and never schedules, and the failpoint sits inside process_part so both paths carry the same instrumentation.
h Backward compatible? (maintainer-approved exception only) Yes. No setting default changed, so no SettingsChangesHistory.cpp entry; no serialization or on-disk format change; no experimental gate. The executor simply stops consulting a lock-acquisition setting to decide whether a SELECT may proceed. The failpoint is inert unless explicitly enabled and compiles away when USE_LIBFIU is off.
i Invariants and contracts preserved? The guard against global thread pool saturation that the deleted comment described is a different branch of scheduleImpl, reached before the queue-full wait, bounded by max_threads alone and unchanged: worker creation still uses a zero-wait global schedule and still fails immediately with failed to start the thread. pool.wait() and process_part are untouched, so ThreadGroupSwitcher attachment is unchanged and no second execution path through process_part is introduced. A throwing job still sets finished, decrements scheduled_jobs and notifies, and the submitter's predicate contains `

Broader regression check: 192 index-related tests swept on both binaries under matched conditions. The failure sets are identical, so this change introduces no new failures.

Session id: cron:clickhouse-impl-slot-5:20260827-220002

@clickhouse-gh

clickhouse-gh Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [eef4d88]

Summary: ✅


AI Review

Summary

This PR fixes the CANNOT_SCHEDULE_TASK rejection in parallel MergeTree index analysis by scheduling at most one pool job per analysis thread and letting each worker drain parts from a shared counter. After reviewing the current diff, the surrounding ThreadPool semantics, the existing discussion, and the updated tests, I did not find any unresolved correctness, concurrency, or coverage issues that warrant a new inline comment.

Final Verdict
  • Status: ✅ Approve

LLVM Coverage Report

Measured on commit eef4d88.

Metric Baseline Current Δ
Lines 88.30% 88.20% -0.10%
Functions 92.10% 92.10% +0.00%
Branches 79.70% 79.70% +0.00%

Changed lines: Changed C/C++ lines covered: 28/28 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 28, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @tiandiwonder @KochetovNicolai, could you review this? The private pool for parallel index analysis is built with the four-argument ThreadPool constructor, so its queue holds only min(num_streams, parts) jobs while the loop below submits one job per part, and a table with more parts than the query has streams made the submitter wait out lock_acquire_timeout and reject a valid SELECT with no free thread.

@clickhouse-gh

clickhouse-gh Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Commit eef4d88dd1ebcc9162f6c78c1c568bba1b175cd4 was not compared: the CI logs cluster did not answer (every POST attempt failed with an exception).

See the job log for details.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - e510569678130b6b781ba1eb921d3cbc8a92e32a

CI is fully finished on this head. Two PR workflow runs were dispatched concurrently at this
commit (33135774847 and 33135781487), so the rollup carries 358 raw check-runs over 176 unique
names: 312 success, 43 skipped by digest, 2 failure, and one cancelled request-reviews-fork,
which is the review-request helper and not a test. Config Workflow, Style check, Code Review
and Finish Workflow are success in both runs.

The two failures are different leaves, and each has an owner. Because the same commit was built
twice, each of them is its own control: Stress test (amd_tsan) failed in 33135774847 and
succeeded in 33135781487, and Stress test (arm_msan) failed in 33135781487 and succeeded in
33135774847. A defect in this tree cannot pass at this tree, so both are state and timing
dependent rather than caused by the diff.

Check / test Reason Owner / fixing PR
Stress test (amd_tsan) / Logical error: Not-ready Set is passed as the second argument for function 'A (STID 0250-41a5) trunk logical error in subquery set building, aborting the server in sanitizer builds. 429 rows over 316 distinct pull requests plus 26 rows on master across 25 distinct commits in 30 days, first seen 2026-07-29. Passed at this same commit in the sibling run. #102308 (external, open)
Stress test (arm_msan) / Logical error: Not-ready Set is passed as the second argument for function 'A (STID 0250-3e49) same family and same owner, a second bucket of the one signature. Passed at this same commit in the sibling run. #102308 (external, open)

This diff is MergeTreeDataSelectExecutor.cpp (+11/-12), FailPoint.cpp and one stateless test.

Reports:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116822&sha=e510569678130b6b781ba1eb921d3cbc8a92e32a&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116822&sha=e510569678130b6b781ba1eb921d3cbc8a92e32a&name_0=PR&name_1=Stress%20test%20%28arm_msan%29

Session id: cron:our-pr-ci-monitor:20260828-080000

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger: b88a03b

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Upgrade check (amd_release) / Error message in clickhouse-server.log pre-existing fixture, not this diff: all 147 flagged lines are one retried mutation all_1_1_1_2 failing MutatePlainMergeTreeTask: Code: 47 ... Unknown expression identifier \b`. Maybe you meant: ['a'] (UNKNOWN_IDENTIFIER`), i.e. a part whose columns are a strict superset of the table's #115962 (ours, open)

This diff touches FailPoint.cpp and MergeTreeDataSelectExecutor.cpp only and cannot reach
splitAndModifyMutationCommands. The same byte-identical message fired on two other unrelated
diffs on the same check in this window, which places it in a shared upgrade-check fixture.

Session id: cron:our-pr-ci-monitor:20260831-093000

@clickhouse-gh clickhouse-gh Bot added the comp-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. label Sep 4, 2026
groeneai and others added 4 commits September 27, 2026 19:40
`filterPartsByPrimaryKeyAndSkipIndexes` scheduled one `ThreadPool` job per
part into a private pool whose queue holds only `num_threads` jobs. With more
parts than threads the submitting thread handed the parts over one at a time,
and every job attached its worker to the query thread group and detached it
again. When the per-part analysis is cheap (skip indexes served from caches or
evaluated at read time), these fixed per-part costs dominate the phase.

Now `min(num_threads, parts)` jobs are scheduled. Each attaches once and takes
parts from a shared counter until none are left, so the parallelism and the
per-part load balancing stay the same.

- The counter is declared before the pool, because the pool destructor joins
  the jobs that still read it when scheduling throws.
- A job stops once the pool is finished: after a job has thrown
  (`shutdown_on_exception`) or when the destructor starts. The remaining parts
  are then abandoned, as the queued per-part jobs were discarded before.

The patch proposed in the issue declared its counters after the pool, so a
scheduling failure would leave running jobs reading destroyed stack objects,
and it kept the bounded `scheduleOrThrow` wait, which cannot fire with at most
`num_threads` jobs.

Measured on x86 (Xeon 6975P-C, both servers pinned to the same 16 cores,
release build, warm caches, `use_query_condition_cache = 0`, the tables and
queries from the issue, three server pairs, 600 interleaved queries each):
- pool jobs per query at `max_threads = 4`: 204 -> 8 (200 parts),
  1004 -> 8 (1000 parts)
- `hasToken` over 1000 parts: median latency -37% to -43%
- text-index `count()` over 200 parts: median latency -12% to -33%
- 4 concurrent clients over 200 parts: 727 -> 1086 QPS (`hasToken`),
  633 -> 881 QPS (`hasAllTokens`)
- queries that do not reach the parallel path (one part, primary key range
  only) differed by -10% to +18% between server pairs, so that is the noise
  floor of this setup for 2 ms queries.

Closes: ClickHouse#122556
…sis-schedule-queue-bound

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`05045_index_analysis_more_parts_than_threads` now checks in `system.query_log`
that the query run with the failpoint took at least 3 s, so the test fails if
the injected delay stops firing instead of passing without testing anything.
It is a lower bound, so a slow runner cannot break it.

`05060_thread_pool_schedule_timeout_chrono_overflow` checked that
`lock_acquire_timeout` reaches the index analysis pool. Index analysis no
longer reads that setting, so the test cannot reach the path it describes. The
setting still bounds the table lock of a `SELECT`, which
`04327_wait_timeout_chrono_overflow` covers with the same values, and the
pool's timed wait is covered by `gtest_thread_pool_schedule_timeout`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai groeneai added the groeneai-origin-issue PR origin: picked up an external GitHub issue label Sep 28, 2026
@groeneai

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

Pre-publication review of the folded tree by an independent model (engine: codex; 2 rounds, 3 findings), plus my own cold review of each round, which changed only the wording of the description.

# Sev Finding Verdict Evidence / action
1 ⚠️ 05060_thread_pool_schedule_timeout_chrono_overflow still claims lock_acquire_timeout reaches index analysis, which no longer reads it AGREE, fixed @ 22ced4d The test is removed. The setting still reaches the table lock of a SELECT, which 04327_wait_timeout_chrono_overflow covers with the same values; the pool's timed wait is covered by gtest_thread_pool_schedule_timeout.
2 ⚠️ 05045 would stay green if its injected delay stopped firing, or with one sequential worker AGREE on the first half, fixed @ 22ced4d; DISAGREE on the second The test now asserts from system.query_log that the stalled query took at least 3 s (a lower bound, safe under load); with the delay removed from the build that line fails. No concurrency assertion: the contract is non-rejection, which serial analysis also satisfies, and the only in-test observables are a wall-clock upper bound or internal job counters (measured outside CI: 4 jobs instead of 1000 per query over 1000 parts).
3 💡 The description should link #116822 and use full URLs on Related: lines DISAGREE This is #116822's own description. #116376 is linked as the PR whose CI run reported the rejection, with its full URL in the linkage block.

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

Session id: cron:clickhouse-review-slot-9:20260928-004503

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Rejection: 05045_index_analysis_more_parts_than_threads (3 parts, max_threads = 2, 3 s per-part failpoint, lock_acquire_timeout = 1) fails 20/20 with CANNOT_SCHEDULE_TASK on master plus only the failpoint. Overhead: the same server runs one query with default parallel analysis and with max_threads_for_indexes = 1 (identical serial code in both binaries), randomly interleaved; LocalThreadPoolJobs 1004 -> 8 per query over 1000 parts.
b Root cause explained? One pool job per part into a private pool whose queue holds num_threads jobs: with more parts than threads the submitter waits on its own full queue (bounded by lock_acquire_timeout, hence the rejection) and every part pays a thread-group attach/detach.
c Fix matches root cause? Yes: at most num_threads jobs, each attaching once and taking parts from a shared counter. The submitter can no longer wait on its own queue, so the timed schedule becomes scheduleOrThrowOnError.
d Test intent preserved / new tests added? 05045 is the regression test for the rejection and asserts from system.query_log that its injected stall ran; 05060_thread_pool_schedule_timeout_chrono_overflow is removed because index analysis no longer reads lock_acquire_timeout (04327_wait_timeout_chrono_overflow still covers the setting). No perf test: the harness rejects sub-0.1 s queries and this phase costs ~6 ms per 1000 cached parts. The loop's normal and exception paths run in every multi-part stateless test (CI draws max_threads 1..3).
e Both directions demonstrated? 05045: 20/20 FAIL on master plus the failpoint, 50/50 OK randomised on this head; with the delay removed from the build, the stall assertion fails (one-line diff). Overhead: parallel/serial time ratio 1.61-1.68 on all 4 base servers vs 1.05-1.07 on all 4 fixed ones (p = 1/70, geometric-mean ratio 0.65).
f Fix is general across code paths? One function serves plain reads, projections and the parallel replicas / distributed index analysis callers. Serial path (num_threads <= 1) unchanged.
g Fix generalizes across inputs (params/datatypes/wrappers)? Grid max_threads {1,2,4,64} x max_threads_for_indexes {0,1,2,1000} over 1 to 1000 parts, primary key, minmax, set, text index (at read and in analysis), top-K and FINAL exact mode: result, EXPLAIN indexes = 1 and processed marks identical to the binary without the loop change in 320/320 cells x 3 runs. More threads than parts gives one job per part; an empty table returns at once.
h Backward compatible? (maintainer-approved exception only) No setting, format or protocol change. query_thread_log gets one MergeTreeIndex row per job instead of per part.
i Invariants and contracts preserved? Each part analysed exactly once unless an exception leaves the function (mutation skipping one part detected in 174/174 parallel cells). Counter declared before the pool, which joins its jobs on unwinding (ASan probe under thread fault injection: no report; the posted shape: stack-use-after-scope). On a part error the rest is abandoned as before (6.07 s, as without the loop change; 21 s with the stop check removed).

Session id: cron:clickhouse-impl-slot-5:20260927-214300

@groeneai
groeneai requested review from Algunenano and azat September 28, 2026 01:31
@clickhouse-gh

clickhouse-gh Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 32 queries analysed

no significant changes detected. K_source=6 K_base=30 flagged=0/65

clickbench

🟢 No significant changes

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: 641883f7-d078-48ab-a94e-fa2c84cccdbc
  • MIRAI run: 0b1ff4d7-16c0-4d97-969e-f57667c1f60a
  • PR check IDs:
    • clickbench_3481260_1791261778
    • clickbench_3481266_1791261778
    • clickbench_3481272_1791261778
    • tpch_adapted_1_official_3481283_1791261778
    • tpch_adapted_1_official_3481294_1791261778
    • tpch_adapted_1_official_3481331_1791261778

@azat azat self-assigned this Oct 1, 2026
CurrentMetrics::MergeTreeDataSelectExecutorThreads,
CurrentMetrics::MergeTreeDataSelectExecutorThreadsActive,
CurrentMetrics::MergeTreeDataSelectExecutorThreadsScheduled,
num_threads);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another alternative is to pass queue_size=0, but I like this approach more, allows to get rid of extra overhead (even though it can be minor)

@azat
azat enabled auto-merge October 1, 2026 08:13
@azat
azat added this pull request to the merge queue Oct 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 6, 2026
The `failpoint_tests_are_isolated` style check requires a test that enables a
fail point to be tagged `no-fasttest` as well as `no-parallel`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

groeneai commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

eef4d88 tags 05045 no-fasttest, which the new failpoint_tests_are_isolated style check requires; that check failed in the merge queue run and removed this PR from the queue.

@azat
azat added this pull request to the merge queue Oct 6, 2026
Merged via the queue into ClickHouse:master with commit 15f3dc9 Oct 6, 2026
149 checks passed
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 6, 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-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. groeneai-origin-issue PR origin: picked up an external GitHub issue groeneai-origin-request PR origin: a maintainer pinged or directed groeneai pr-bugfix Pull request with bugfix, not backported by default 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.

Index analysis schedules one pool job per part; one job per thread makes text-index searches over many parts 21-45% faster

4 participants