Skip to content

Commit 59cd727

Browse files
committed
use yet another tryget
1 parent 3314f21 commit 59cd727

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Storages/StorageReplicatedMergeTree.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4497,7 +4497,13 @@ std::vector<ReplicatedPartitionExportInfo> StorageReplicatedMergeTree::getPartit
44974497

44984498
const auto exceptions_per_replica_path = export_partition_path / "exceptions_per_replica";
44994499

4500-
const auto exception_replicas = zk->getChildren(exceptions_per_replica_path);
4500+
Strings exception_replicas;
4501+
if (Coordination::Error::ZOK != zk->tryGetChildren(exceptions_per_replica_path, exception_replicas))
4502+
{
4503+
LOG_INFO(log, "Skipping {}: missing exceptions_per_replica", export_partition_path);
4504+
continue;
4505+
}
4506+
45014507
for (const auto & replica : exception_replicas)
45024508
{
45034509
std::string exception_count_string;

0 commit comments

Comments
 (0)