And waits for them. That's pointless.
{
    auto zookeeper = getZooKeeper();
    return zookeeper->exists(fs::path(zookeeper_path) / "replicas" / replica / "parts" / part_name);
}
String StorageReplicatedMergeTree::findReplicaHavingPart(const String & part_name, bool active)
{
    auto zookeeper = getZooKeeper();
    Strings replicas = zookeeper->getChildren(fs::path(zookeeper_path) / "replicas");
    
    std::shuffle(replicas.begin(), replicas.end(), thread_local_rng);
    LOG_TRACE(log, "Candidate replicas: {}", replicas.size());
    for (const String & replica : replicas)
    {
        
        if (replica == replica_name)
            continue;
        LOG_TRACE(log, "Candidate replica: {}", replica);
        if (checkReplicaHavePart(replica, part_name) &&
            (!active || zookeeper->exists(fs::path(zookeeper_path) / "replicas" / replica / "is_active")))
            return replica;
        
    }
    return {};
}
String StorageReplicatedMergeTree::findReplicaHavingCoveringPart(LogEntry & entry, bool active)