Repository navigation
Keep the post-build phase check of 04647_spilling_hash_join_post_build_phase off parallel replicas - #123784
Conversation
The test asserts JoinBuildPostProcessingMicroseconds > 0 on the initiator's query_log row. Under parallel replicas the join-order randomization can put t_post_build_left, the coordinated read, on the build side. Its marks form one coordinator segment owned by a remote replica, so when the local replica's first read request arrives after that replica announces, the local replica gets 0 marks and builds an empty hash table. The whole build and its post-build phase then run in the remote replicas' secondary queries, whose ProfileEvents are forwarded to the client only and are not added to the initiator's query_log row, so the check reads 0. Seen in "Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)" on PRs ClickHouse#117005 and ClickHouse#123740 with the output "0 0" instead of "1 0". Pin enable_parallel_replicas = 0 on the measured join only, as other join tests asserting join ProfileEvents already do. The test's subject, SpillingHashJoin running the post-build phase of the wrapped join, does not depend on how the read is split between replicas. 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 a separate cold review of the diff (0 blocker/major findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261003-231100 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261003-224900 |
|
Workflow [PR], commit [91a0596] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict
|
CI finish ledger - 0d1bc7fEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
All 160 checks completed, Session id: cron:our-pr-ci-monitor:20261004-023151 |
Related: #122853
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04647_spilling_hash_join_post_build_phasefails in the newStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)job from #122853: the second line prints0 0instead of1 0, i.e.JoinBuildPostProcessingMicrosecondsis 0 on the initiator'squery_logrow (#117005 report, #123740 report).The randomized join-order statistics can put
t_post_build_left, the read that parallel replicas split, on the build side. Its marks are one coordinator segment owned by a remote replica, so when the local replica asks after that replica has announced, it gets 0 marks and builds an empty hash table. The build and its post-build phase then run only in the remote replicas' secondary queries, whoseProfileEventsare not added to the initiator'squery_logrow. In both failing jobs the initiator's row hasJoinBuildTableRowCount = 0while a secondary query built the rows.The measured join now pins
enable_parallel_replicas = 0, as other join tests that assert joinProfileEventsdo. What the test covers,SpillingHashJoinrunning the post-build phase of the wrapped join, does not depend on how the read is split between replicas.Validation (CI
amd_binarybuild of the base commit, three-replica local cluster): with theslowdown_parallel_replicas_local_plan_readfailpoint the old test fails 9/20, in exactly the runs where the local replica got 0 marks, and the new one passes 20/20. Withparallel_replicas_local_plan = 0the old test fails 20/20 and the new one passes 20/20. The new test also passes 50/50 under randomized settings in the regular configuration and 50/50 in the job's 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/123784]
Version info
26.10.1.1539-master(included in26.10and later)