mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Merge pull request #21366 from songenjie/shutdown_timeout_log
[ClickHouse][LOG]correct shutdown timeout log
This commit is contained in:
commit
6e5638cee8
@ -80,8 +80,9 @@ void NuKeeperServer::shutdown()
|
|||||||
{
|
{
|
||||||
state_machine->shutdownStorage();
|
state_machine->shutdownStorage();
|
||||||
state_manager->flushLogStore();
|
state_manager->flushLogStore();
|
||||||
if (!launcher.shutdown(coordination_settings->shutdown_timeout.totalSeconds()))
|
auto timeout = coordination_settings->shutdown_timeout.totalSeconds();
|
||||||
LOG_WARNING(&Poco::Logger::get("NuKeeperServer"), "Failed to shutdown RAFT server in {} seconds", 5);
|
if (!launcher.shutdown(timeout))
|
||||||
|
LOG_WARNING(&Poco::Logger::get("NuKeeperServer"), "Failed to shutdown RAFT server in {} seconds", timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user