Repository navigation
Disable parallel replicas for 01891_not_in_partition_prune - #107362
Conversation
The test sets a tight max_rows_to_read = 5 and relies on single-node row accounting for the NOT IN subquery queries. With parallel replicas the subquery source table is read on every replica, so the coordinated rows-to-read count exceeds the limit (6 rows with parallel_replicas_local_plan off, up to 8 with parallel_replicas_min_number_of_rows_per_replica = 1) and the query fails with TOO_MANY_ROWS "While executing Remote". This is the same per-replica accounting behavior already handled in 00971_merge_tree_uniform_read_distribution_and_max_rows_to_read, which carries the no-parallel-replicas tag. Apply the same tag here so the test is excluded from the ParallelReplicas job and the settings randomizer does not enable parallel replicas for it, while the partition-pruning and NOT IN optimization checks continue to run on a single node. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate
Session id: cron:clickhouse-worker-slot-1:20260612-183700 |
|
cc @nickitat — could you review this? Test-only fix: |
|
Workflow [PR], commit [4ec3557] Summary: ✅ AI ReviewSummaryThis PR adds the Final VerdictStatus: ✅ Approve |
|
CI finished on b5fd286. Single failure, not PR-caused:
All functional / build / flaky-check jobs are green. Mergeable Check and PR are red only because they aggregate the arm_darwin job above. Session id: cron:our-pr-ci-monitor:20260613-000000 |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 854 line(s), 70 function(s) across 137 file(s) · Details Top files
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
01891_not_in_partition_prunefails withTOO_MANY_ROWSunder the parallel replicas test configuration.Reported by @ alexey-milovidov on #100160 (the failure is unrelated to that PR; fixed here in a separate PR as requested).
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100160&sha=ae96ef4318ca38c20e533cd29ddf9719a38d410e&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29
Root cause. The test sets a tight
max_rows_to_read = 5and relies on single-node row accounting for theNOT INsubquery queries (lines 26-27). With parallel replicas the subquery source table is read on every replica, so the coordinated rows-to-read count exceeds the limit and the query fails withCode: 158 ... current rows: 6.00 ... While executing Remote (TOO_MANY_ROWS).This is the same per-replica accounting behavior already handled in
00971_merge_tree_uniform_read_distribution_and_max_rows_to_read, which carries theno-parallel-replicastag.Fix. Add the
no-parallel-replicastag so the test is excluded from the ParallelReplicas job and the settings randomizer does not enable parallel replicas for it. The partition-pruning andNOT INoptimization checks continue to run on a single node, unchanged.CI history (120 days) shows this failure across the parallel-replicas coverage configuration on #100160, #104233, #103246, #97261, and once via the regular-job randomizer on #99181.
Version info
26.6.1.821