Compare commits

...

3 Commits

Author SHA1 Message Date
Sumit
8833c6e07e
Merge d9b1fb7a7c into 2cef99c311 2024-09-18 00:38:41 +02:00
sum12
d9b1fb7a7c move more zookeeper related calls in try..catch block 2024-09-10 13:22:29 +02:00
sum12
f0490e8372 catch additional zk connection erros while creating table
and handle the case of dropping empty table dirs
2024-08-30 12:35:57 +02:00

View File

@ -547,6 +547,14 @@ StorageReplicatedMergeTree::StorageReplicatedMergeTree(
if (!is_first_replica) if (!is_first_replica)
createReplica(metadata_snapshot); createReplica(metadata_snapshot);
createNewZooKeeperNodes();
syncPinnedPartUUIDs();
if (!has_metadata_in_zookeeper.has_value() || *has_metadata_in_zookeeper)
createTableSharedID();
} }
catch (...) catch (...)
{ {
@ -555,12 +563,6 @@ StorageReplicatedMergeTree::StorageReplicatedMergeTree(
throw; throw;
} }
createNewZooKeeperNodes();
syncPinnedPartUUIDs();
if (!has_metadata_in_zookeeper.has_value() || *has_metadata_in_zookeeper)
createTableSharedID();
initialization_done = true; initialization_done = true;
} }