Repository navigation
Allow repeated settings in the hung check's server stack dump - #113391
alexey-milovidov wants to merge 2 commits into
Conversation
In the stress test's hung check, `get_stacktraces_from_clickhouse` builds the client command from `get_additional_client_options`, which concatenates `CLICKHOUSE_CLIENT_OPT` with the `--client-option` values - and in that job both carry the same settings (`max_untracked_memory`, `max_memory_usage_for_user`, `memory_profiler_step`, `ast_fuzzer_runs`). The client then fails with `Bad arguments: option '--max_untracked_memory' cannot be specified more than once` and the `system.stack_trace` dump is lost exactly when it is needed to find the thread that holds a lock. The regular test-runner path already appends `--allow_repeated_settings` for the same reason; do it here as well. Observed in https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=111990&sha=4a7da581fa41048c63b20cc7df609a5676bfede8&name_0=PR&name_1=Stress%20test%20%28amd_debug%29 (`hung_check.log`: 74 queries waiting on the `DatabaseFilesystem` mutex, and the all-threads dump that would show the holder failed with the error above).
|
Workflow [PR], commit [3e385a1] Summary: ✅ AI ReviewSummaryThis PR adds Missing context / blind spots
Final VerdictNo material findings. The change looks correct to merge. |
…k-dump-repeated-settings
|
🕵 The |
|
Already merged in another PR. |
Changelog category (leave one):
In the stress test's hung check, the
system.stack_traceall-threads dump is built fromget_additional_client_options, which concatenatesCLICKHOUSE_CLIENT_OPTwith the--client-optionvalues — and in that job both carry the same settings (max_untracked_memory,max_memory_usage_for_user,memory_profiler_step,ast_fuzzer_runs). The client then refuses to start withBad arguments: option '--max_untracked_memory' cannot be specified more than once, and the stack dump is lost exactly when it is needed to find the thread that holds a lock. The regular test-runner path already appends--allow_repeated_settingsfor the same reason (seeadd_effective_settingsintests/clickhouse-test); do it inget_stacktraces_from_clickhouseas well.Observed in this
Stress test (amd_debug)report:hung_check.logshows 74 queries waiting on theDatabaseFilesystemmutex, and the dump that would show the holder failed with the error above.Related: #111990