Repository navigation
BuzzHouse: do not enable pauseable failpoints, which park a fuzzer query for the rest of the run - #115554
Conversation
BuzzHouse's failpoint selection query drew from all of system.fail_points, 84 rows of which are pauseable or pauseable_once. Those block the next thread to reach them until a NOTIFY or DISABLE names that same failpoint, with no timeout, and each of the four failpoint statements (enable, disable, notify, wait) picks its name independently at random from that one list. So a resume for the specific paused failpoint is unlikely to ever be generated, and the fuzzer's own query stays parked for the rest of the run. BuzzHouse (amd_msan) on ClickHouse#104437 (654c183) hit exactly that: the fuzzer enabled storage_merge_create_children_plans_pause and never disabled it (the log has 67 DISABLE FAILPOINT lines for other names, none for this one), then parked 13 minutes later at StorageMerge.cpp:923. Teardown never reached "clickhouse stop", so status.tsv was never written and the job reported ERROR with no useful signal. Filter the selection by type rather than by name so failpoints added later are covered too, following 6e8e70e which excluded the thread-group injections from the same call. This bounds only the fuzzer's random selection: the failpoints' semantics and the stateless tests that enable them deliberately are untouched. Note that this also drops DISABLE, NOTIFY and WAIT of pauseable failpoints, since all four statements draw from this one list. That is intended: a WAIT on a never-paused channel can park the fuzzer's connection by itself. Measured locally: the query goes from 299 names (84 pauseable, including the one above) to 215 with none pauseable, while the once and regular count is unchanged at 215; a BuzzHouse run loads 215 and still generates failpoint statements, none of them pauseable. Co-Authored-By: Claude Fable 5 <[email protected]>
Internal second-model review (click to expand)Reviewed cold against the code on disk (carriers enumerated independently before reading the plan), then re-reviewed by a second model. 5 findings: 3 agreed and fixed here, 2 disagreed with evidence.
Root cause independently re-derived from the run's Session id: cron:clickhouse-review-slot-8:20260820-005300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20260819-215600 |
|
Workflow [PR], commit [c21ed2f] Summary: ❌
AI ReviewSummaryThis PR narrows BuzzHouse's random failpoint pool so it no longer selects Final VerdictStatus: ✅ Approve |
|
cc @PedroTadim @mstetsyuk, could you review this? BuzzHouse drew failpoint names from all of system.fail_points, so it could enable a pauseable failpoint whose resume needs a NOTIFY or DISABLE naming that same name; since each statement picks its name independently at random the resume is rarely generated, the fuzzer parks its own query with no timeout, and teardown never writes status.tsv. This filters the selection by type. @PedroTadim, it also drops WAIT and NOTIFY of pauseable failpoints, which collides with the intent in #115264, so please say if you would rather I solved it differently. |
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. |
9965d6a
Related: #104437
Related: #115264
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Requested by @ bacek on #104437.
BuzzHouse (amd_msan)on #104437 (job, report) reportedERRORwithFuzzer runner aborted before writing status.tsv. The fuzz phase finished normally, then the job went silent for 71 minutes and died with the container.Root cause: the fuzzer enabled the pauseable failpoint
storage_merge_create_children_plans_pause(server.log:324783) and never disabled it - the log has 67DISABLE FAILPOINTlines for other names, none for this one. 13 minutes later it issuedSELECT elapsed, query FROM merge('system', '^processes$'), which parked atStorageMerge.cpp:923and was that thread's last line.pauseFailPointhas no timeout and wakes only on aNOTIFYorDISABLEnaming that same failpoint, so teardown never reachedclickhouse stopandstatus.tsvwas never written.The selection query draws from all of
system.fail_points, 84 rows of which arepauseableorpauseable_once, and each of the four failpoint statements picks its name independently at random, so the resume is unlikely to ever be generated. Filtering by type also covers failpoints added later, and follows6e8e70e0384bf59, which excluded the thread-group injections here.Deliberate coverage reduction: all four statements draw from this one list, so
DISABLE,NOTIFYandWAITof pauseable failpoints go too. @ PedroTadim, that collides with the intent stated in #115264 - please say if you would rather I solved it another way.enableFailPointcreates a wait channel only for the two pauseable types, so afterwards a fuzzerWAITreturns at once and aNOTIFYthrowsCannot find channel, as it already does for the other 215 names.Validated locally: 299 names (84 pauseable) become 215 with none pauseable,
onceplusregularunchanged at 215; a BuzzHouse run loads 215 and still emits failpoint statements, none pauseable. 5 of the 140 stateless tests using failpoints gave identical results before and after. #115264'sORDER BY rand() LIMIT 10composes with this clause.Workflow [PR]
Sync PR [sync-upstream/pr/115554]
Version info
26.8.1.1760(included in26.8and later)