I deleted all the zookeeper's for clickhouse path because its hard disk was full, after that I restarted the cluster.
Right now the data can not be inserted because the path is not created
return res;
    };
    String shard_node_name = get_shard_name(task.cluster->getShardsAddresses().at(task.host_shard_num));
    String shard_path = node_path + "/shards/" + shard_node_name;
    String is_executed_path = shard_path + "/executed";
    zookeeper->createAncestors(shard_path + "/");
    auto is_already_executed = [&]() -> bool
    {
        String executed_by;
        if (zookeeper->tryGet(is_executed_path, executed_by))
        {
            LOG_DEBUG(log, "Task {} has already been executed by leader replica ({}) of the same shard.", task.entry_name, executed_by);
            return true;
        }
        return false;
    };
    pcg64 rng(randomSeed());
    auto lock = createSimpleZooKeeperLock(zookeeper, shard_path, "lock", task.host_id_str);
    static const size_t max_tries = 20;
    bool executed_by_leader = false;
    for (size_t num_tries = 0; num_tries < max_tries; ++num_tries)
    {
        if (is_already_executed())
        {
            executed_by_leader = true;
            break;
        }
        StorageReplicatedMergeTree::Status status;
        replicated_storage->getStatus(status);