mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Reinitialize fault injection after session expiration
This commit is contained in:
parent
be7766ee73
commit
bb0f3ffec2
@ -2743,6 +2743,8 @@ zkutil::ZooKeeperPtr Context::getZooKeeper() const
|
||||
Stopwatch watch;
|
||||
LOG_DEBUG(shared->log, "Trying to establish a new connection with ZooKeeper");
|
||||
shared->zookeeper = shared->zookeeper->startNewSession();
|
||||
if (isServerCompletelyStarted())
|
||||
shared->zookeeper->setServerCompletelyStarted();
|
||||
LOG_DEBUG(shared->log, "Establishing a new connection with ZooKeeper took {} ms", watch.elapsedMilliseconds());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user