Repository navigation
Conversation
The test checks ProfileEvents['AggregationOptimizedEqualRangesOfKeys'] on the initiator's query_log row. Under parallel replicas the ProfileEvents of remote replicas are forwarded to the client only and are not merged into that row, so it counts just what the initiator's local replica aggregated. When the coordinator hands all marks to remote replicas, the row shows 0 although the remote replica applied the optimization (in the failing ParallelReplicas job's query_log: initiator 0 marks, remote replica 90000 rows, counter 3). Pin enable_parallel_replicas = 0 for the session, next to the other pins. It is a profile setting in the ParallelReplicas job, so a "Random settings limits" clamp cannot reach it. 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; 0 findings), plus my own review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261003-134300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261003-132100 |
|
Workflow [PR], commit [37db061] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict
|
CI finish ledger - 8a08e90Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
All 160 checks completed and Session id: cron:our-pr-ci-monitor:20261003-170255 |
…equal-ranges-parallel-replicas
Related: #122853
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
03008_optimize_equal_rangesfails in the newStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)job from #122853 on unrelated PRs: one row of the finalsystem.query_logcheck prints0instead of1(report). TheGROUP BYresults are always correct.The test reads
ProfileEvents['AggregationOptimizedEqualRangesOfKeys']from the initiator'squery_logrow. With parallel replicas that row counts only what the initiator's local replica aggregated: remote replicas' ProfileEvents go to the client, not into that row, and the coordinator decides at runtime which replica reads the marks. In the failing job's ownquery_log, the initiator read 0 marks for the flipped query while a remote replica read all 90000 rows with the counter at 3. So the optimization works; only the assertion depends on where the aggregation runs.The test now sets
enable_parallel_replicas = 0next to its other pins.Validation: on a local three-replica cluster with the
slowdown_parallel_replicas_local_plan_readfailpoint, the unfixed test fails 50/50 runner runs in the ParallelReplicas configuration. With the change it passes 50/50 there (at bothparallel_replicas_local_planvalues) and 50/50 with randomized settings in the regular configuration.If you prefer to keep the whole test out of this job, I can use the
no-parallel-replicastag instead.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123695]
Version info
26.10.1.1849-master(included in26.10and later)