Repository navigation
Tag 05080_dedup_hash_lazy_replicated_column as no-parallel-replicas - #123943
Conversation
…lel replicas The test checks that the second INSERT ... SELECT is deduplicated against the first one: the same rows in the same order, only the column representation differs. The insert deduplication hash is computed per source chunk, so it depends on chunk boundaries and order, which the test makes deterministic with `max_threads = 1` on one server. In the ParallelReplicas job the SELECT reads the probe table with parallel replicas. With a randomized `index_granularity` below 10 the 10-row probe has several marks, and on `s3 storage` the read requests are small enough that the coordinator can give some marks to a remote replica. Which replica reads which marks depends on announcement timing, so the two inserts produce different chunks, nothing is deduplicated and `count()` is 2000 instead of 1000. Pin `enable_parallel_replicas = 0` on both inserts. The defect under test (the lazily replicated column hashed differently from the dense one) does not depend on how reads are spread over 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 my own cold review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20261005-042000 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261005-035000 |
|
Workflow [PR], commit [94fe47b] Summary: ✅ AI ReviewSummaryThis PR replaces the per-query Final Verdict
|
There was a problem hiding this comment.
@groeneai let's use Tag no-parallel-replicas for the test instead, and add concise comment why
…ead of pinning the inserts Review request: replace the two per-insert `enable_parallel_replicas = 0` pins with the `no-parallel-replicas` tag. The tag skips the test in the ParallelReplicas job and makes the runner pass `enable_parallel_replicas = 0` everywhere else, so both inserts read on one server and produce the same chunks in the same order, which the deduplication check needs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
05080_dedup_hash_lazy_replicated_column off parallel replicas05080_dedup_hash_lazy_replicated_column as no-parallel-replicas
|
Thanks, done in 94fe47b: the test is tagged |
The test asserts that a repeated INSERT ... SELECT with the same insert_deduplication_token is deduplicated. The dedup block id depends on how the source read is chunked, so both inserts must produce the same chunks; the test pins the query-level read shape but not parallel replicas, which the ParallelReplicas jobs enable server-side. With a small randomized index_granularity (15 on ClickHouse#94017) the 20000-row source has 1333 marks. On s3-backed parts the replicas read it in 13 or 14 requests depending on timing, and when the two inserts make a different number of requests the chunks differ and the repeat is appended (40000 instead of 20000). Measured locally: 21 of 21 failing pairs had different request counts, 16 of 16 deduplicated pairs had equal ones; a different mark split alone does not break deduplication (local disk: 173 requests per insert, 0 of 400 runs failing). In the automatic parallel replicas runs of ClickHouse#120438 the first insert runs single-node and the second on parallel replicas, so those draws fail every rerun. CI: ClickHouse#94017 arm_binary ParallelReplicas s3 (22/53 reruns), ClickHouse#120438 amd_debug and arm_binary ParallelReplicas s3 (94/94, 50/50), ClickHouse#124526 arm_binary ParallelReplicas s3 (38/38). No master failure. Same fix as 05080_dedup_hash_lazy_replicated_column in ClickHouse#123943: skipped in the ParallelReplicas jobs, enable_parallel_replicas = 0 elsewhere. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #114577
Related: #123790
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05080_dedup_hash_lazy_replicated_columnreturns2000instead of1000inStateless tests (arm_binary, ParallelReplicas, s3 storage, parallel)(report, 18 of 27 reruns with the same settings failed).The test expects the second
INSERT ... SELECTto be deduplicated against the first. The dedup hash is per source chunk, so both inserts must produce the same chunks in the same order, which the test gets frommax_threads = 1on one server. That run drewindex_granularity = 1, so the 10-row probe table has 10 marks, and ons3 storagethe parallel replicas read requests are only a few marks (the remote filesystem thresholds are 0). A remote replica that announces in time reads some of the marks, which depends on timing, so the two inserts get different chunks and nothing is deduplicated. Only release builds drawindex_granularitybelow 100, so theamd_llvm_coverageParallelReplicas lane does not hit this; thearm_binarylane comes back with #123790.The test is now tagged
no-parallel-replicas: it is skipped in the ParallelReplicas jobs, and elsewhere the runner passesenable_parallel_replicas = 0. The bug under test (the lazily replicated column hashed differently from the dense one) does not depend on parallel replicas.Validation on a local three-replica cluster (
index_granularity = 1, the s3 read thresholds set to 0, the ParallelReplicas profile): the test without the tag fails 11/50 runner runs with the CI diff (-1000 / +2000). With the tag it is skipped under the job's--no-parallel-replicas; without that flag none of 43 completed runs returns2000(the other 7 hit an unrelated localsession_timezonedraw), andsystem.query_logshows 0 of 86 inserts on parallel replicas.Workflow [PR]
Sync PR [sync-upstream/pr/123943]
Version info
26.10.1.1881-master(included in26.10and later)