Repository navigation
Conversation
Since ClickHouse#120438 the autopr ParallelReplicas runs set `automatic_parallel_replicas_ignore_thresholds = 1`, so the read cap no longer declines this small read and the verdict rests on the cost formula: at `max_threads = 4` and 3 replicas it applies when the shipped bytes are less than half the read bytes. The shipped keys are priced with the factory default codec ZSTD(3), the read with the part's codec, which tests/config/install.sh randomizes across LZ4, ZSTD(1) and ZSTD(3). On a ZSTD(3) part both sides are 188256 bytes (47064 < 78440, declined); on an LZ4 part the read is 400341 bytes (100085 > 96113, applied), which is what the failing coverage job logged. Pin `default_compression_codec = 'ZSTD(3)'` on the table, as install.sh documents for codec-sensitive tests and as 03634 and 04100 already do. Validation (debug build, server default codec LZ4, ignore_thresholds = 1): unchanged test 6/6 FAIL with the CI diff and formula line; pinned test 3/3 OK, 50/50 randomized with and without the setting, 6/6 each under ZSTD(1) and ZSTD(3); all 87 runnable autopr tests pass under LZ4 with the autopr profile. 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 (1 nit below).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261118-032301 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261118-025900 |
|
Workflow [PR], commit [33668b0] Summary: ✅ AI ReviewSummaryPR #132570 pins Final VerdictStatus: ✅ Approve |
75fcef2
Related: #120438
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05257_autopr_rejected_by_cost_modelfails on master in every autopr-mode ParallelReplicas run whose job drewLZ4as the server default codec, e.g.Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel, 1/2)ate8cb3beb96c3(3 of 3 reruns): the second query applies parallel replicas instead of being declined.Since #120438 these runs set
automatic_parallel_replicas_ignore_thresholds = 1, so the verdict rests on the cost formula alone: atmax_threads = 4and 3 replicas it applies when the shipped bytes are less than half the read bytes. The shipped keys are always priced withZSTD(3), the factory default codec, while the read is priced with the part's codec, whichtests/config/install.shrandomizes acrossLZ4,ZSTD(1)andZSTD(3). On aZSTD(3)part both sides price alike (188256 / 4 ? (188256 / 12 + 188256 / 3), 47064 < 78440, declined); on anLZ4part the read costs about twice the shipped bytes (400341 / 4 ? (400341 / 12 + 188256 / 3), 100085 > 96113, applied), which is the line in the failing job's server log.The test now pins
default_compression_codec = 'ZSTD(3)'on its table, the mechanisminstall.shdocuments for codec-sensitive tests and the one03634_autopr_input_bytes_estimation_compactand04100_autopr_input_bytes_estimation_aggregation_in_orderuse. Reverting #120438 would also stop the red, but it drops the autopr coverage that PR added, which only exposed this codec dependence.Validation (debug build, server default codec
LZ4,automatic_parallel_replicas_ignore_thresholds = 1): the unchanged test fails 6/6 with the CI diff and the CI formula line; with the pin it passes 3/3, 50/50 with random settings and 50/50 without the setting, and 6/6 each underZSTD(1)andZSTD(3). With the autopr profile andLZ4, the 87autoprtests that do not need the stateful dataset pass, with and without random settings.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132570]
Version info
26.11.1.2703-master(included in26.11and later)