mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #29914 from amosbird/waitunfinish
Add shutdown_wait_unfinished_queries setting
This commit is contained in:
commit
18a980d7b0
@ -1539,7 +1539,8 @@ if (ThreadFuzzer::instance().isEffective())
|
||||
LOG_INFO(log, "Closed all listening sockets.");
|
||||
|
||||
/// Killing remaining queries.
|
||||
global_context->getProcessList().killAllQueries();
|
||||
if (!config().getBool("shutdown_wait_unfinished_queries", false))
|
||||
global_context->getProcessList().killAllQueries();
|
||||
|
||||
if (current_connections)
|
||||
current_connections = waitServersToFinish(*servers, config().getInt("shutdown_wait_unfinished", 5));
|
||||
|
Loading…
Reference in New Issue
Block a user