https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
break; 
            auto storage_id = storage->getStorageID();
            if (!storage->hasUsers() && DatabaseCatalog::instance().getDependencies(storage_id).empty())
            {
                
                storages_to_drop.emplace_back(storage_id);
                it = views.erase(it);
                continue;
            }
            
            time_of_check = current_time + storage->getTimeout();
            ++it;
        }
        lock.unlock();
        for (const auto & storage_id : storages_to_drop)
            executeDropQuery(storage_id, global_context);
        lock.lock();
    }
}
void TemporaryLiveViewCleaner::stopBackgroundThread()
{
    if (background_thread.joinable())
    {
        background_thread_should_exit = true;
        background_thread_wake_up.notify_one();
        background_thread.join();
    }
}
}