Repository navigation
Do not run 00673_subquery_prepared_set_performance with parallel replicas - #130153
alexey-milovidov merged 2 commits into
Conversation
…_prepared_set_performance The ParallelReplicas job turns parallel replicas on in the server profile, which the `enable_parallel_replicas=(0, 0)` random-settings clamp cannot reach. Every replica that executes a measured query builds its own copy of the `IN` set, and a remote replica that reads the only granule reports its rows to the initiator, so the initiator's `read_rows` becomes 2000001 and the `max(read_rows) < 2000000` check fails. Pin `enable_parallel_replicas = 0` on the two measured queries only. The comment sits next to the check: a comment directly above a query becomes part of its logged text, and the check matches the queries with `query LIKE 'SELECT * FROM (SELECT%'`. Failing job: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127016&sha=6f98a2c7d072a5aa5d2ff2a2271667981e9e2dd4&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding;
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261108-130600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261108-124800 |
|
Workflow [PR], commit [cba292a] Summary: ✅ AI ReviewSummaryReviewed head Final VerdictStatus: ✅ Approve |
|
cc @devcrafter, could you review this and add the |
|
@groeneai the test should either disabled with tag or fixed with enabled parallel replicas. Having settings clamping for parallel replcias and disabled parallel replicas per query - look more then strange - whatever reason it is |
Per review on ClickHouse#130153: replace the per-query `enable_parallel_replicas = 0` pins and the `enable_parallel_replicas=(0, 0)` random-settings clamp with the `no-parallel-replicas` tag. Under parallel replicas each replica builds its own 1M-row `IN` set, and a remote replica that reads adds its rows to the initiator's `read_rows`, so the "set prepared once" check sees 2000001 or 3000001. The tag skips the test in the ParallelReplicas job and makes the runner append `--enable_parallel_replicas 0` last in every other job, which also covers the `automatic_parallel_replicas_mode = 2` draw that the old clamp was for. The two measured queries are back to their master text. Validated on a server with the ParallelReplicas job's profile: the runner with `--no-parallel-replicas` skips the test; without it, 50/50 randomized runs pass with parallel reading off on all 100 measured queries and no secondary queries. With the `parallel_replicas_wait_for_unused_replicas` failpoint, the new file passes 20/20 with the tag's client override and fails 10/10 without it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
00673_subquery_prepared_set_performance00673_subquery_prepared_set_performance with parallel replicas
|
Thanks, done in cba292a: the test is now tagged |
Related: #124015
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
00673_subquery_prepared_set_performancefails in Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel): itssystem.query_logcheckmax(read_rows) < 2000000 AND count() >= 2returns0.The ParallelReplicas job enables parallel replicas in the server profile. Each replica that executes a measured query builds its own copy of the 1M-key
INset, and when a remote replica reads the table's only granule its rows are added to the initiator's progress: the failing job'squery_logshowsread_rows= 2000001 (1000000 local + 1000001 remote). That is how parallel replicas count rows, not a second preparation of the set.The test is now tagged
no-parallel-replicas, like02233_set_enable_with_statement_cte_perffor the same reason: the ParallelReplicas job skips it, and every other job runs it with the runner's--enable_parallel_replicas 0, which replaces theenable_parallel_replicas=(0, 0)random-settings clamp. The measured queries and the.referenceare unchanged.Validation on a server configured like the job: the runner with
--no-parallel-replicasskips the test; without it, 50/50 randomized runs pass, with parallel reading off for all 100 measured queries and no secondary queries. With the failpointparallel_replicas_wait_for_unused_replicas(unused replicas are not cancelled), the tagged file prints120/20 with the runner's override and010/10 without it (initiatorread_rows3000001).#126681 fixed an earlier, different failure of this test (a spilled
INset).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/130153]
Version info
26.11.1.1705-master(included in26.11and later)