mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Fix drop of completely dropped table
This commit is contained in:
parent
62ebf397d2
commit
2384761063
@ -7487,6 +7487,10 @@ void StorageReplicatedMergeTree::createTableSharedID() const
|
||||
id = zookeeper->get(zookeeper_table_id_path);
|
||||
LOG_DEBUG(log, "Shared ID on path {} concurrently created, will set ID {}", zookeeper_table_id_path, id);
|
||||
}
|
||||
else if (code == Coordination::Error::ZNONODE)
|
||||
{
|
||||
LOG_WARNING(log, "Shared ID on path {} is impossible to create because table was completely dropped, parts can be dropped without checks (using id {})", zookeeper_table_id_path, id);
|
||||
}
|
||||
else if (code != Coordination::Error::ZOK)
|
||||
{
|
||||
throw zkutil::KeeperException(code, zookeeper_table_id_path);
|
||||
|
Loading…
Reference in New Issue
Block a user