mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +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 (...)
|
||||
{
|
||||
tryLogCurrentException(log, "Terminating. Cannot initialize DDL queue");
|
||||
throw;
|
||||
tryLogCurrentException(log, "Terminating. Cannot initialize DDL queue.");
|
||||
return;
|
||||
}
|
||||
} while (!initialized);
|
||||
|
||||
@ -895,8 +895,8 @@ void DDLWorker::run()
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_ERROR(log, "Unexpected ZooKeeper error: " << getCurrentExceptionMessage(true) << ". Terminating...");
|
||||
throw;
|
||||
LOG_ERROR(log, "Unexpected ZooKeeper error: " << getCurrentExceptionMessage(true) << ". Terminating.");
|
||||
return;
|
||||
}
|
||||
|
||||
/// Unlock the processing just in case
|
||||
@ -904,8 +904,8 @@ void DDLWorker::run()
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
LOG_ERROR(log, "Unexpected error: " << getCurrentExceptionMessage(true) << ". Terminating...");
|
||||
throw;
|
||||
LOG_ERROR(log, "Unexpected error: " << getCurrentExceptionMessage(true) << ". Terminating.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user