mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Better logging
This commit is contained in:
parent
67e4393769
commit
d4c6a5a05e
@ -67,12 +67,12 @@ void ReplicatedMergeTreeRestartingThread::run()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!readonly_mode_was_set)
|
if (storage.getZooKeeper()->expired())
|
||||||
{
|
{
|
||||||
LOG_WARNING(log, "ZooKeeper session has expired. Switching to a new session.");
|
LOG_WARNING(log, "ZooKeeper session has expired. Switching to a new session.");
|
||||||
setReadonly();
|
setReadonly();
|
||||||
}
|
}
|
||||||
else
|
else if (readonly_mode_was_set)
|
||||||
{
|
{
|
||||||
LOG_WARNING(log, "Table was in readonly mode. Will try to activate it.");
|
LOG_WARNING(log, "Table was in readonly mode. Will try to activate it.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user