Repository navigation
Add timeout to SYSTEM STOP DISTRIBUTED SENDS in stop_server - #102149
Merged
alexey-milovidov merged 2 commits intoApr 9, 2026
Merged
Conversation
The `stop_server` function retries `SYSTEM STOP DISTRIBUTED SENDS` up to 30 times before calling `clickhouse stop`. When the server is unresponsive (e.g. after a stress test), each attempt waits for the default `receive_timeout` of 300 seconds. This means the loop can burn 30 × 300 = 9000 seconds (2.5 hours) before proceeding to actually stop the server, consuming the entire CI job timeout. Add `--receive_timeout=10` so each attempt fails within 10 seconds when the server is unresponsive. Worst case the loop now takes 30 × 10 = 300 seconds instead of 9000. Found in: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102011&sha=8ed7fb8bcfdac4af8d2a062200b104281178981b&name_0=PR&name_1=Stress%20test%20%28arm_tsan%29 PR: #102011 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [646782f] Summary: ✅ AI ReviewSummaryThis PR updates ClickHouse Rules
Final Verdict
|
Member
Author
|
The MSan stress test failure (MemorySanitizer: use-of-uninitialized-value, STID 4179-5154 or 4148-3044) is a known pre-existing issue unrelated to this PR. Fix: #102158 |
Algunenano
approved these changes
Apr 9, 2026
This was referenced Apr 9, 2026
32 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
stop_serverfunction instress_tests.libretriesSYSTEM STOP DISTRIBUTED SENDSup to 30 times before callingclickhouse stop. When the server is unresponsive (e.g. after a stress test under TSan), each attempt waits for the defaultreceive_timeoutof 300 seconds. This means the loop burns 30 × 300 = 9000 seconds (2.5 hours) before proceeding to actually stop the server, consuming the entire CI job timeout and preventing any diagnostics (gdb stack traces, log collection, etc.).Add
--receive_timeout=10so each attempt fails within 10 seconds when the server is unresponsive. Worst case the loop now takes 300 seconds instead of 9000.Found in: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=102011&sha=8ed7fb8bcfdac4af8d2a062200b104281178981b&name_0=PR&name_1=Stress%20test%20%28arm_tsan%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Version info
26.4.1.734