And waits for them. That's pointless.
catch (const zkutil::KeeperException & e)
        {
            if (e.code == Coordination::Error::ZNONODE)
                continue;
            throw;
        }
    }
}
bool StorageReplicatedMergeTree::unlockSharedData(const IMergeTreeDataPart & part) const
{
    if (!part.volume)
        return true;
    DiskPtr disk = part.volume->getDisk();
    if (!disk)
        return true;
    if (disk->getType() != DB::DiskType::Type::S3)
        return true;
    zkutil::ZooKeeperPtr zookeeper = tryGetZooKeeper();
    if (!zookeeper)
        return true;
    String id = part.getUniqueId();
    boost::replace_all(id, "/", "_");
    String zookeeper_part_node = fs::path(zookeeper_path) / "zero_copy_s3" / "shared" / part.name;
    String zookeeper_part_uniq_node = fs::path(zookeeper_part_node) / id;
    String zookeeper_node = fs::path(zookeeper_part_uniq_node) / replica_name;
    LOG_TRACE(log, "Remove zookeeper lock {}", zookeeper_node);
    zookeeper->tryRemove(zookeeper_node);
    Strings children;
    zookeeper->tryGetChildren(zookeeper_part_uniq_node, children);
    if (!children.empty())