https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
{
    if (database_catalog)
    {
        throw Exception("Database catalog is initialized twice. This is a bug.",
            ErrorCodes::LOGICAL_ERROR);
    }
    database_catalog.reset(new DatabaseCatalog(global_context_));
    return *database_catalog;
}
DatabaseCatalog & DatabaseCatalog::instance()
{
    if (!database_catalog)
    {
        throw Exception("Database catalog is not initialized. This is a bug.",
            ErrorCodes::LOGICAL_ERROR);
    }
    return *database_catalog;
}
void DatabaseCatalog::shutdown()
{
    
    
    if (database_catalog)
    {
        database_catalog->shutdownImpl();
    }
}
DatabasePtr DatabaseCatalog::getDatabase(const String & database_name, const Context & local_context) const