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
{
    const auto & shard_info = task.cluster->getShardsInfo().at(task.host_shard_num);
    bool config_is_replicated_shard = shard_info.hasInternalReplication();
    if (dynamic_cast<const StorageDistributed *>(storage.get()))
    {
        LOG_TRACE(log, "Table {} is distributed, skip checking config.", backQuote(table));
        return;
    }
    if (storage->supportsReplication() && !config_is_replicated_shard)
    {
        throw Exception("Table " + backQuote(table) + " is replicated, but shard #" + toString(task.host_shard_num + 1) +
            " isn't replicated according to its cluster definition."
            " Possibly <internal_replication>true</internal_replication> is forgotten in the cluster config.",
            ErrorCodes::INCONSISTENT_CLUSTER_DEFINITION);
    }
    if (!storage->supportsReplication() && config_is_replicated_shard)
    {
        throw Exception("Table " + backQuote(table) + " isn't replicated, but shard #" + toString(task.host_shard_num + 1) +
            " is replicated according to its cluster definition", ErrorCodes::INCONSISTENT_CLUSTER_DEFINITION);
    }
}
bool DDLWorker::tryExecuteQueryOnLeaderReplica(