Repository navigation
Conversation
…stributed The stress profile sets ast_fuzzer_runs = 5 and ast_fuzzer_any_query = true (tests/docker_scripts/stress_tests.lib), so the server-side AST fuzzer re-runs mutated copies of every statement of every stateless test, CREATE included. In this test it retypes the Merge parent's column and substitutes the retyped clone into a SELECT. A Merge parent whose column type differs from its child's is the precondition for the sort-order defect behind 'Equal values are not contiguous within the range assumed to be sorted' at DistinctSortedStreamTransform.cpp, so every stress run manufactures it. That is 24 stress aborts across 22 unrelated pull requests in the last 24 hours, and 87 since this test was merged on 2026-08-17, against 5 in the 20 days before. The engine defect itself is old and is not addressed here; ClickHouse#113242 owns it. This change removes the amplification only. Pinning ast_fuzzer_runs to its own declared default weakens no assertion: all seven arms still run and still assert, and the reference file is unchanged. The pin is file-level rather than per-query because the chain needs both a fuzzed CREATE, to mint the mistyped clone, and a fuzzed SELECT, to substitute it in, so pinning only the SELECTs would cut one link of two. Nine stateless tests already pin this setting, two of them for this same reason. The no-stress tag is not an option, clickhouse-test rejects it. Validated on one debug binary differing only in the test file: with the fuzzer armed the unpinned test fails 6 of 30 runs and the pinned test passes 30 of 30, with fuzzed queries for this test dropping from 4650 to 150. The abort was also reproduced locally on a hand-built mistyped fixture with a stack matching CI. 50 randomized runs, and 50 more with the fuzzer armed, pass. Co-Authored-By: Claude Fable 5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding; bounded: 1 full pass).
Severity: ❌ blocker / Independently re-derived during review, rather than taken from the implementation notes: the One residual, disclosed and not chased: #113242's regression test covers Session id: cron:clickhouse-review-slot-9:20260821-181000 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20260821-173200 (implementation); cron:clickhouse-review-slot-9:20260821-181000 (review) |
|
Workflow [PR], commit [68b414d] Summary: ✅ AI ReviewSummaryThis PR pins Final Verdict✅ No findings. |
|
cc @tavplubix, could you review this? It is a test-only change: the stress profile arms the server-side AST fuzzer for every statement, which retypes this test's |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
|
This PR does not fix CI. Not merging |
|
Agreed, and I am not reopening or re-pushing this. Measured why you are right. #113242, the root-cause fix, merged 2026-08-30T16:33:24Z. On The part that is genuinely post-fix is exactly what a fuzzer pin must not absorb. The one post-fix true-master hit is master CREATE TABLE dist_distinct__fuzz_3 (`s` BFloat16) ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), 't_distinct', rand())over That is the The separate PR I promised on #112951 was this one, so I am recording the outcome here rather than reviving that closed thread. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #115455
Related: #113242
Related: #114677
Stress test (*)jobs abort withLogical error: 'Equal values are not contiguous within the range assumed to be sorted'atDistinctSortedStreamTransform.cpp:184: 87 times across 78unrelated pull requests since
04870was merged on 2026-08-17, against 5 in the 20 days before,and it is still firing today.
The engine defect is old and is not what I change here. The stress profile sets
ast_fuzzer_runs = 5andast_fuzzer_any_query = true(
tests/docker_scripts/stress_tests.lib), so the server-side AST fuzzer re-runs mutated copies ofevery statement of every stateless test,
CREATEincluded. In04870it retypes the fixture'sMergeparent and substitutes the clone into aSELECT, and aMergeparent whose column typediffers from its child's is the precondition for the assertion. My test is the amplifier, and this
PR removes only that. The defect itself is #113242, still open.
The change is one statement,
SET ast_fuzzer_runs = 0;, pinning the setting to its own declareddefault. It weakens nothing: all seven arms still run and still assert, and the
.referencefileis unchanged. Nine stateless tests already pin it, several for this same reason. It is file-level
rather than per-query because the chain needs both a fuzzed
CREATE, to mint the clone, and afuzzed
SELECT, to substitute it in.-- Tags: no-stressis not an option,clickhouse-testrejects it.
Validation, one debug binary differing only in the test file: with the fuzzer armed the unpinned
test fails 6 of 30 runs and the pinned test passes 30 of 30. I also reproduced the abort on a
hand-built mistyped fixture, with a stack matching CI. 50 randomized runs, and 50 with the fuzzer
armed, pass.
Workflow [PR]
Sync PR [sync-upstream/pr/115839]