Repository navigation
Clamp random merge_max_block_size in test 02371_select_projection_normal_agg - #129676
tiandiwonder merged 2 commits into
Conversation
The test inserts 1,728,000 rows and runs two MATERIALIZE PROJECTION mutations. When the INSERT produces a part above 1,048,449 rows (the default min_insert_block_size_rows that squashes projection input), the p_norm projection is written as two temporary parts, which MergeProjectionPartsTask merges with a MergeTask that emits blocks of merge_max_block_size rows. The runner draws that setting from [1, 24576]; one CI run drew 1 and the projection merge became 1,063,188 one-row blocks (106 s), and since the part was Packed the second MATERIALIZE rebuilt p_norm the same way. The two ALTERs took 109 s + 112 s and the run failed "Test runs too long (> 180s)" in Stateless tests (amd_asan_ubsan, db disk, distributed plan, targeted). Clamp only that setting to [100, 24576] with the per-test limits line, so the merge stays multi-block and the setting stays randomized. 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 (2 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261106-042100 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261106-034800 |
|
Workflow [PR], commit [fde82e4] Summary: ✅ AI ReviewSummaryThe PR clamps randomized Final VerdictStatus: ✅ Approve |
|
cc @CurtizJ, could you review this and add the |
CI finish ledger - 3fe80abEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
The Session id: cron:our-pr-ci-monitor:20261106-080007 |
|
Fixing PR for the 05292_part_log_remove_part_on_retried_drop_table failure in Stateless tests (arm_binary, parallel): #129699 |
da3dc32
Related: #129411
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Clamp the randomized
merge_max_block_sizeto at least 100 in the test02371_select_projection_normal_agg, which took over 180 s when the runner drew 1.Description
02371_select_projection_normal_aggtook 231 s, over the 180 s limit, in Stateless tests (amd_asan_ubsan, db disk, distributed plan, targeted) on #129411 (1 of 50 runs; the others took 10-19 s). That run drewmerge_max_block_size = 1, and its twoMATERIALIZE PROJECTIONstatements took 109 s + 112 s.The INSERT produced a 1,063,188-row part, above the 1,048,449-row default
min_insert_block_size_rowsthat squashes projection input, sop_normwas written as two temporary parts andMergeProjectionPartsTaskmerged them in blocks ofmerge_max_block_sizerows (Merged sorted, 1063188 blocks, 1063188 rows). The part was Packed, soMATERIALIZE PROJECTION p_aggrebuiltp_normthe same way.The fix adds
-- Random settings limits: merge_max_block_size=(100, None). Only draws below 100 (0.4%) change; the setting stays randomized over [100, 24576], and the data, queries and reference are unchanged.Validation on ASan: a 1.1M-row
MATERIALIZE PROJECTIONtakes 61-72 s atmerge_max_block_size = 1, 2.0 s at 100 and 1.5 s at 8192. Replaying the failing run's settings takes 220-225 s per run, and 12 s with only that value set to 100. A runner forced to draw 1 got 100 in 5/5 runs; with the limits line broken, 1 came back (a 250 s run). 50 randomized runs pass,p_normis used whenever projections are enabled and the part is not pruned (47/50). In flaky-check mode on master CI binaries (TSan, 32 CPUs,-j 18, 100 runs; ASan, 16 CPUs,-j 8, 50 runs) the max is 59.2 s and 13.1 s.02516_projections_with_rollupuses the same fixture and is handled in #125496.Workflow [PR]
Sync PR [sync-upstream/pr/129676]
Version info
26.12.1.12-master(included in26.12and later)