Repository navigation
Pin parallel_replicas_min_number_of_rows_per_replica in 04839_parallel_replicas_cancel_before_announcement - #124341
Merged
alexey-milovidov merged 1 commit intoOct 7, 2026
Conversation
Every cancel query in the test is `SELECT k ... LIMIT 1`. With a positive `parallel_replicas_min_number_of_rows_per_replica`, the planner caps the estimated rows at the trivial limit (1 row), sizes the read at 1 replica and disables parallel replicas, so the `used_parallel_replicas` check reads 0. Pin the setting to 0 next to `automatic_parallel_replicas_mode = 0`. Related: ClickHouse#71028 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings), plus an own cold review (0 findings). Nothing to adjudicate. Session id: cron:clickhouse-review-slot-9:20261007-003300 |
Contributor
|
Workflow [PR], commit [ac01dec] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict
|
alexey-milovidov
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The test
04839_parallel_replicas_cancel_before_announcementnow pinsparallel_replicas_min_number_of_rows_per_replica = 0, so its cancel queries keep using parallel replicas when that setting is randomized.Description
Related: #71028
Failed on #71028, which randomizes
parallel_replicas_min_number_of_rows_per_replicato 0 or 1, inStateless tests (arm_binary, sequential)(report). The only diff isused_parallel_replicas1->0; the runner reproduced it 20/20 with the same settings and named this setting as the culprit.Every cancel query in the test is
SELECT k ... LIMIT 1. With the setting positive, the planner caps the row estimate at the trivial limit, sizes the read at one replica and disables parallel replicas (that job's server log hasDisabling parallel replicas because there aren't enough rows to readfor all five cancel queries). They then run single-node, and theused_parallel_replicascheck added in #122773 correctly reports a run that tested nothing.The setting is now pinned to
0in the test's ownSETTINGS, next to theautomatic_parallel_replicas_mode = 0pin for the other route to the same fallback. The reference is unchanged.Validation (master debug build, CI server config):
parallel_replicas_min_number_of_rows_per_replica=1, no other randomization: the old test fails 10/10 with the CI diff; the new one passes 5/5, every cancel query withParallelReplicasUsedCount >= 1.1fails 3/3.1, and 20/20 without it.Workflow [PR]
Sync PR [sync-upstream/pr/124341]
Version info
26.10.1.1730-master(included in26.10and later)