mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Merge pull request #8442 from ClickHouse/ddlworker-trash
Removed trash from DDLWorker
This commit is contained in:
commit
9e8c3acffc
@ -941,22 +941,19 @@ void DDLWorker::runMainThread()
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
try
|
auto zookeeper = getAndSetZooKeeper();
|
||||||
{
|
zookeeper->createAncestors(queue_dir + "/");
|
||||||
auto zookeeper = getAndSetZooKeeper();
|
initialized = true;
|
||||||
zookeeper->createAncestors(queue_dir + "/");
|
}
|
||||||
initialized = true;
|
catch (const Coordination::Exception & e)
|
||||||
}
|
{
|
||||||
catch (const Coordination::Exception & e)
|
if (!Coordination::isHardwareError(e.code))
|
||||||
{
|
throw; /// A logical error.
|
||||||
if (!Coordination::isHardwareError(e.code))
|
|
||||||
throw; /// A logical error.
|
|
||||||
|
|
||||||
tryLogCurrentException(__PRETTY_FUNCTION__);
|
tryLogCurrentException(__PRETTY_FUNCTION__);
|
||||||
|
|
||||||
/// Avoid busy loop when ZooKeeper is not available.
|
/// Avoid busy loop when ZooKeeper is not available.
|
||||||
sleepForSeconds(1);
|
sleepForSeconds(1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user