Repository navigation
Run the local join of 04201_max_bytes_ratio_before_external_join_distributed without parallel replicas - #124909
Conversation
In the ParallelReplicas configuration the server profile enables parallel replicas, so query 1 of 04201_max_bytes_ratio_before_external_join_distributed (the "non-distributed" join) runs on the three replicas of `default_parallel_replicas`. Every replica builds the whole right side and, with `max_bytes_ratio_before_external_join = 0.0001`, rehashes to 256 GraceHashJoin buckets, about 1 GiB each. The two remote replicas run as `default` and inherit the forwarded `max_memory_usage_for_user = 1Gi`, so they share one 1 GiB user limit and one of them throws MEMORY_LIMIT_EXCEEDED on every run. The test fails only when that replica already owned marks, which happened in 2 of 31 runs of the failing CI job. Pin `enable_parallel_replicas = 0` on that query, so it runs on one executor as in every other configuration and the `query_log` assertion keeps reading the row of the executor that joined. Query 2 never engages parallel replicas and is unchanged. 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:20261009-123900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261009-120200 |
|
Workflow [PR], commit [32ee917] Summary: ✅ AI ReviewSummaryThis PR makes the local half of Final Verdict
|
4a4fdf9
Related: #122853
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
04201_max_bytes_ratio_before_external_join_distributedfails inStateless tests (arm_binary, ParallelReplicas, s3 storage, sequential)withhaving stderror: the first, non-distributed join receivesCode: 241 ... User memory limit exceeded ... maximum: 1.00 GiBfrom127.0.0.2(report; the job's own rerun failed 1/30).In that job the server profile enables parallel replicas, so this query runs on the three replicas of
default_parallel_replicas. Each replica builds the whole right side and, with the test's tiny spill ratio, grows to 256 grace join buckets, about 1 GiB. The two remote replicas run asdefaultand inherit the test user'smax_memory_usage_for_user = 1Gi, so they share one 1 GiB limit and one of them fails on every run. The test only goes red when that replica already owned marks.The query now pins
enable_parallel_replicas = 0, as #123784 did for04647_spilling_hash_join_post_build_phasein the same job. The second, distributed query never uses parallel replicas and is unchanged.Validation on the CI
amd_binarybuild of that run, with the job's configuration on one server (is_local1/0/0): before, 101/101 runs had a remote replica fail withCode: 241(the test itself red 10/10 withparallel_replicas_local_plan = 0); after, 100/100 pass with no secondary queries for this join, the same ~1015 MiB peak as in the other jobs, and the spill assertion still fails when the ratio is set to 0. 50/50 in the regular configuration.If you prefer to keep the whole test out of this job, I can use the
no-parallel-replicastag instead.Workflow [PR]
Sync PR [sync-upstream/pr/124909]
Version info
26.10.1.1970-master(included in26.10and later)