https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
{
    std::lock_guard lock(shared->clusters_mutex);
    if (!shared->clusters)
        throw Exception("Clusters are not set", ErrorCodes::LOGICAL_ERROR);
    shared->clusters->setCluster(cluster_name, cluster);
}
void Context::initializeSystemLogs()
{
    auto lock = getLock();
    shared->system_logs.emplace(*global_context, getConfigRef());
}
void Context::initializeTraceCollector()
{
    shared->initializeTraceCollector(getTraceLog());
}
bool Context::hasTraceCollector() const
{
    return shared->hasTraceCollector();
}
std::shared_ptr<QueryLog> Context::getQueryLog()
{
    auto lock = getLock();
    if (!shared->system_logs)
        return {};
    return shared->system_logs->query_log;
}
std::shared_ptr<QueryThreadLog> Context::getQueryThreadLog()