mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Terminate only DDLWorker in case of unexpected exception in DDLWorker [#CLICKHOUSE-4].
This commit is contained in:
parent
1495490726
commit
5af5f78cb7
@ -859,8 +859,8 @@ void DDLWorker::run()
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
tryLogCurrentException(log, "Terminating. Cannot initialize DDL queue");
|
tryLogCurrentException(log, "Terminating. Cannot initialize DDL queue.");
|
||||||
throw;
|
return;
|
||||||
}
|
}
|
||||||
} while (!initialized);
|
} while (!initialized);
|
||||||
|
|
||||||
@ -895,8 +895,8 @@ void DDLWorker::run()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_ERROR(log, "Unexpected ZooKeeper error: " << getCurrentExceptionMessage(true) << ". Terminating...");
|
LOG_ERROR(log, "Unexpected ZooKeeper error: " << getCurrentExceptionMessage(true) << ". Terminating.");
|
||||||
throw;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unlock the processing just in case
|
/// Unlock the processing just in case
|
||||||
@ -904,8 +904,8 @@ void DDLWorker::run()
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
LOG_ERROR(log, "Unexpected error: " << getCurrentExceptionMessage(true) << ". Terminating...");
|
LOG_ERROR(log, "Unexpected error: " << getCurrentExceptionMessage(true) << ". Terminating.");
|
||||||
throw;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user