Repository navigation
Do not run the AST fuzzer in the stress job's system log export - #133786
PedroTadim merged 1 commit into
Conversation
`collect_query_and_trace_logs` exports the system logs with
`clickhouse-local --config-file=/etc/clickhouse-server/config.xml`, which loads
the stress `default` profile (`ast_fuzzer_runs = 5`, `ast_fuzzer_any_query =
true`). After each export query `clickhouse-local` therefore runs up to 5
fuzzed variants of it synchronously before exiting. Their results are
discarded, so the export never needed them, and one of them can take over an
hour: in three `Stress test (amd_tsan)` runs a variant like
`SELECT * FROM merge(REGEXP('(?i)SYSTEM'), 'metric_log')` spent 64-72 min
building the plan for the `system.metric_log` child, since
`max_execution_time` is only checked between `Merge` children. On PR ClickHouse#114734
(60 min stress phase) that pushed the job past its 3 h timeout and no result
was uploaded.
Pass `--ast_fuzzer_runs 0`, as `stress.py` and `setup_log_cluster.sh` already
do for harness statements. The stress run itself keeps the fuzzer.
Validated with the stress profile over a populated server data directory:
the function ran 20 fuzzed queries on master and 0 with this change, with
identical exported files; `--ast_fuzzer_runs 5` brings them back.
Related: ClickHouse#114734 (comment)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [e54b2de] Summary: ✅ AI ReviewSummaryThe PR disables inherited AST fuzzing during system-log export by passing Missing context / blind spots
Final VerdictStatus: ✅ Approve |
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding; 2 runs on this head). My own cold review of the diff found nothing.
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261123-135714 |
|
cc @nikitamikhaylov, could you review this? Stress job log export: run clickhouse-local with --ast_fuzzer_runs 0 so fuzzed variants of the export query cannot push the job past its 3 h timeout (seen on #114734) |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261123-134504 |
478291e
Related: #114734
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
collect_query_and_trace_logsintests/docker_scripts/stress_tests.libexports the system logs withclickhouse-local --config-file=/etc/clickhouse-server/config.xml, which loads the stressdefaultprofile (ast_fuzzer_runs = 5,ast_fuzzer_any_query = true). So after each export queryclickhouse-localruns up to 5 fuzzed variants of it before it exits. Their results are discarded, and one of them can take over an hour: in 3Stress test (amd_tsan)runs on 2026-11-20 and 2026-11-21 themetric_logexport took 64-72 min, each time in a variant likeSELECT * FROM merge(REGEXP('(?i)SYSTEM'), 'metric_log')building the plan for thesystem.metric_logchild (Timeout exceeded: elapsed 4248469 ms, maximum: 10000 ms) (1, 2, 3). With a 60 min stress phase this pushed a job past its 3 h timeout, and it uploaded no result at all (report).The export now passes
--ast_fuzzer_runs 0, asstress.pyandsetup_log_cluster.shalready do for harness statements; the stress run itself keeps the fuzzer. Both callers,stress_runner.shandupgrade_runner.sh, run the new binary at that point.Validated locally with the stress profile over a populated server data directory: the function ran 20 fuzzed queries on master (5 per table) and 0 with this change, and the four exported files are identical.
Not changed here: the
merge()child planning that ignoresmax_execution_timefor over an hour is a separate engine issue, and in some runs thequery_log/trace_logdumps stop at the profile's 1Gmax_result_bytes(Code: 396).Workflow [PR]
Sync PR [sync-upstream/pr/133786]
Version info
26.12.1.353-master(included in26.12and later)