Report: https://s3.amazonaws.com/clickhouse-test-reports/28981/16f034fe4cb7fb110c0e015b8515a3604246f222/stress_test__memory__actions_.html
Stacktrace:
```
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.776841 [ 520 ] {} <Fatal> BaseDaemon: Code: 60. DB::Exception: Table `test_lazy_01014_concurrent_test_pct8g1`.`log` doesn't exist.: Cannot create table from metadata file /var/lib/clickhouse/metadata/test_lazy_01014_concurrent_test_pct8g1/log.sql. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below):
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.783659 [ 520 ] {} <Fatal> BaseDaemon: 
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.783730 [ 520 ] {} <Fatal> BaseDaemon: 0. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/exception:133: Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x42336aca in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.783807 [ 520 ] {} <Fatal> BaseDaemon: 1. ./obj-x86_64-linux-gnu/../src/Common/Exception.cpp:57: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xa134f4c in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.783864 [ 520 ] {} <Fatal> BaseDaemon: 2. ./obj-x86_64-linux-gnu/../src/Databases/DatabaseLazy.cpp:0: DB::DatabaseLazy::loadTable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const @ 0x327c04ab in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.783943 [ 520 ] {} <Fatal> BaseDaemon: 3. ./obj-x86_64-linux-gnu/../src/Databases/DatabaseLazy.cpp:142: DB::DatabaseLazy::tryGetTable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const @ 0x327bc18d in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784019 [ 520 ] {} <Fatal> BaseDaemon: 4. ./obj-x86_64-linux-gnu/../src/Databases/DatabaseLazy.h:0: DB::DatabaseLazy::tryGetTable(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<DB::Context const>) const @ 0x327cc00a in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784070 [ 520 ] {} <Fatal> BaseDaemon: 5. ./obj-x86_64-linux-gnu/../src/Databases/DatabaseOnDisk.cpp:0: DB::DatabaseOnDisk::getCreateTableQueryImpl(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<DB::Context const>, bool) const @ 0x31cf910d in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784133 [ 520 ] {} <Fatal> BaseDaemon: 6. ./obj-x86_64-linux-gnu/../src/Databases/IDatabase.h:0: DB::TablesBlockSource::generate() @ 0x3052f3d8 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784206 [ 520 ] {} <Fatal> BaseDaemon: 7. ./obj-x86_64-linux-gnu/../src/Processors/Chunk.h:90: DB::ISource::tryGenerate() @ 0x36f73830 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784255 [ 520 ] {} <Fatal> BaseDaemon: 8. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/optional:295: DB::ISource::work() @ 0x36f73072 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784303 [ 520 ] {} <Fatal> BaseDaemon: 9. ./obj-x86_64-linux-gnu/../src/Processors/Sources/SourceWithProgress.cpp:67: DB::SourceWithProgress::work() @ 0x377acf7a in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784387 [ 520 ] {} <Fatal> BaseDaemon: 10. ./obj-x86_64-linux-gnu/../src/Processors/Executors/ExecutionThreadContext.cpp:65: DB::ExecutionThreadContext::executeTask() @ 0x36fe4cc5 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784436 [ 520 ] {} <Fatal> BaseDaemon: 11. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:187: DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) @ 0x36fb0594 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784487 [ 520 ] {} <Fatal> BaseDaemon: 12. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::executeImpl(unsigned long) @ 0x36faec0b in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784536 [ 520 ] {} <Fatal> BaseDaemon: 13. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long) @ 0x36fac959 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784588 [ 520 ] {} <Fatal> BaseDaemon: 14. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:86: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()> >(std::__1::__function::__policy_storage const*) @ 0x36ff19fc in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784659 [ 520 ] {} <Fatal> BaseDaemon: 15. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2210: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0xa1c4c5d in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.log.2:2021.11.23 21:14:25.784709 [ 520 ] {} <Fatal> BaseDaemon: 16. ./obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:0: void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()> >(void*) @ 0xa1cfdc1 in 
```
: DatabaseOnDisk(name_, metadata_path_, "data/" + escapeForFileName(name_) + "/", "DatabaseLazy (" + name_ + ")", context_)
    , expiration_time(expiration_time_)
{
}
void DatabaseLazy::loadStoredObjects(
    ContextMutablePtr local_context, bool , bool , bool )
{
    iterateMetadataFiles(local_context, [this, &local_context](const String & file_name)
    {
        const std::string table_name = unescapeForFileName(file_name.substr(0, file_name.size() - 4));
        fs::path detached_permanently_flag = fs::path(getMetadataPath()) / (file_name + detached_suffix);
        if (fs::exists(detached_permanently_flag))
        {
            LOG_DEBUG(log, "Skipping permanently detached table {}.", backQuote(table_name));
            return;
        }
        attachTable(local_context, table_name, nullptr, {});
    });
}
void DatabaseLazy::createTable(