Terminate only DDLWorker in case of unexpected exception in DDLWorker [#CLICKHOUSE-4].

This commit is contained in:
Alexey Milovidov 2017-08-14 08:51:03 +03:00
parent 1495490726
commit 5af5f78cb7

View File

@ -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;
} }
} }
} }