Repository navigation
Fuzz functions from system table and update - #105550
Conversation
|
Workflow [PR], commit [5db5c66] Summary: ⏳
AI ReviewSummaryThis PR modernizes BuzzHouse function/aggregate fuzzing by loading metadata from Findings❌ Blockers
Final VerdictStatus:
|
|
@groeneai the test |
Co-Authored-By: Claude Opus 4.6 <[email protected]>
3137281 to
8ce781e
Compare
|
The 04043 failure on commit This was a chronic flaky tracked across 24+ unrelated PRs over 14 days. Root cause: Master fix: #105759 (merged 2026-05-25 05:49 UTC). Pins Rebase on latest master to pull in the fix. |
LLVM Coverage Report
Changed lines: 17.17% (34/198) | lost baseline coverage: 171 line(s) · Uncovered code |
|
There are opened issues for the CI failures, plus fixes on the way |
…ous 04296 The Bugfix-validation framework reported that 04295 and 04296 do not reproduce the SIGSEGV in `canSkipConversionToNullable` against master: the natural race needs ZooKeeper fault injection plus aggressive concurrent ALTER chaos that no stateless test can stage. Add a dedicated `mt_mutate_task_can_skip_conversion_to_nullable_force_null_column_desc` failpoint that forces `metadata_snapshot->getColumns().tryGet(...)` to return null inside `canSkipConversionToNullable`. Pre-fix, the next line dereferences the null `ColumnDescription*` at offset 0x90 (the `statistics` field), exactly the address pattern from the original CI sighting on PR ClickHouse#105550. With the existing `!column_desc ||` guard the optimization is simply skipped and the mutation falls through to the normal rewrite path. Rewrite 04295 as a deterministic regression test that toggles the failpoint around an `ALTER MODIFY COLUMN y Nullable(UInt8)` on a table with `STATISTICS(tdigest)`. On master without the guard the mutation worker crashes the server with SIGSEGV at address 0x90 and the test diffs against the reference. On the PR with the guard the optimization returns false, the mutation completes through the normal path, the column type becomes `Nullable(UInt8)` and data is preserved. Drop 04296 (concurrent inserts shape) which never reproduced the bug deterministically and was the second source of Bugfix-validation false positives. The deterministic 04295 covers the regression strictly better. Verified locally: 10/10 passes with the fix; the broken version (null guard removed) raises SIGSEGV with `Address: 0x90. Access: read. Address not mapped to object.` exactly matching the original signature from https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105550&sha=5db5c66a4c135950ddd8ac21fe895a693ae75bec&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29 Co-Authored-By: Claude Opus 4.8 <[email protected]>
`canSkipConversionToNullable` in `src/Storages/MergeTree/MutateTask.cpp` calls `metadata_snapshot->getColumns().tryGet(command.column_name)` and then dereferences the result without a null check. `tryGet` returns `nullptr` when the column is missing from the metadata snapshot used by the mutation task, which can happen under concurrent `ALTER DROP COLUMN` in stress tests (see Issue ClickHouse#105912 from PedroTadim). The deref hits address `0x90` (the offset of the `statistics` field in `ColumnDescription`), matching the observed SIGSEGV signature. Guard with the same `!column_desc || ...` pattern already used at the sibling `READ_COLUMN` site (line 1173-1174) of the same file. When `column_desc` is null, return `false` so this optimization is skipped and the normal mutation path surfaces the error. The new stateless regression test exercises the path through `canSkipConversionToNullable` with `STATISTICS(tdigest)` and an `ALTER MODIFY COLUMN ... Nullable(T)`, ensuring the function works in the common case where statistics are present. The race itself was observed in `Stress test (amd_tsan)` on PR ClickHouse#105550 and is not directly reproducible from a stateless test because the in-tree safety check `checkDropOrRenameCommandDoesntAffectInProgressMutations` blocks the non-concurrent path. Closes ClickHouse#105912
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Version info
26.6.1.188