Stack trace:
```
2022.04.28 22:38:04.310077 [ 508 ] {} <Fatal> : Logical error: 'Part 9_0_0_0 (state PreActive) not found in data_parts'.
2022.04.28 22:38:04.318313 [ 42106 ] {} <Fatal> BaseDaemon: ########################################
2022.04.28 22:38:04.318500 [ 42106 ] {} <Fatal> BaseDaemon: (version 22.5.1.1, build id: 4D21BFC29037A6B1) (from thread 508) (no query) Received signal Aborted (6)
2022.04.28 22:38:04.318655 [ 42106 ] {} <Fatal> BaseDaemon:
2022.04.28 22:38:04.318863 [ 42106 ] {} <Fatal> BaseDaemon: Stack trace: 0x7faa981ea03b 0x7faa981c9859 0x17b73b54 0x17b73c62 0x27c008fe 0x27c19b21 0x27885919 0x278728cf 0x27ea9e22 0x27eab719 0x27eaf0c4 0x27eaf7b8 0x27eaf775 0x27eaf73d 0x27eaf715 0x27eaf6dd 0x17bd6386 0x17bd28b5 0x25ccaf0b 0x25ccf301 0x25cccf1a 0x25ccdff8 0x25ccdfd5 0x25ccdf81 0x25ccde92 0x25ccdd76 0x25ccdc55 0x25ccdc1d 0x25ccdbf5 0x25ccdbc0 0x17bd6386 0x17bd28b5 0x17c82a0f 0x17c89424 0x17c893b5 0x17c892e5 0x17c88c22 0x7faa983a1609 0x7faa982c6163
2022.04.28 22:38:04.319104 [ 42106 ] {} <Fatal> BaseDaemon: 4. gsignal @ 0x7faa981ea03b in ?
2022.04.28 22:38:04.319239 [ 42106 ] {} <Fatal> BaseDaemon: 5. abort @ 0x7faa981c9859 in ?
2022.04.28 22:38:04.706185 [ 42106 ] {} <Fatal> BaseDaemon: 6. /build/build_docker/../src/Common/Exception.cpp:52: DB::handle_error_code(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool, std::__1::vector<void*, std::__1::allocator<void*> > const&) @ 0x17b73b54 in /usr/bin/clickhouse
2022.04.28 22:38:05.075082 [ 42106 ] {} <Fatal> BaseDaemon: 7. /build/build_docker/../src/Common/Exception.cpp:59: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0x17b73c62 in /usr/bin/clickhouse
2022.04.28 22:38:08.904471 [ 42106 ] {} <Fatal> BaseDaemon: 8. /build/build_docker/../src/Storages/MergeTree/MergeTreeData.cpp:2905: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::__1::vector<std::__1::shared_ptr<DB::IMergeTreeDataPart const>, std::__1::allocator<std::__1::shared_ptr<DB::IMergeTreeDataPart const> > > const&, bool, std::__1::unique_lock<std::__1::mutex>*) @ 0x27c008fe in /usr/bin/clickhouse
2022.04.28 22:38:11.155606 [ 42106 ] {} <Fatal> BaseDaemon: 9. /build/build_docker/../src/Storages/MergeTree/MergeTreeData.cpp:4750: DB::MergeTreeData::Transaction::rollback() @ 0x27c19b21 in /usr/bin/clickhouse
2022.04.28 22:38:13.574573 [ 42106 ] {} <Fatal> BaseDaemon: 10. /build/build_docker/../src/Storages/MergeTree/MergeTreeData.h:268: DB::MergeTreeData::Transaction::~Transaction() @ 0x27885919 in /usr/bin/clickhouse
2022.04.28 22:38:15.026959 [ 42106 ] {} <Fatal> BaseDaemon: 11. /build/build_docker/../src/Storages/StorageReplicatedMergeTree.cpp:7946: DB::StorageReplicatedMergeTree::createEmptyPartInsteadOfLost(std::__1::shared_ptr<zkutil::ZooKeeper>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x278728cf in /usr/bin/clickhouse
2022.04.28 22:38:15.382847 [ 42106 ] {} <Fatal> BaseDaemon: 12. /build/build_docker/../src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:247: DB::ReplicatedMergeTreePartCheckThread::searchForMissingPartAndFetchIfPossible(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) @ 0x27ea9e22 in /usr/bin/clickhouse
2022.04.28 22:38:15.621662 [ 42106 ] {} <Fatal> BaseDaemon: 13. /build/build_docker/../src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:297: DB::ReplicatedMergeTreePartCheckThread::checkPart(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x27eab719 in /usr/bin/clickhouse
2022.04.28 22:38:15.873956 [ 42106 ] {} <Fatal> BaseDaemon: 14. /build/build_docker/../src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:450: DB::ReplicatedMergeTreePartCheckThread::run() @ 0x27eaf0c4 in /usr/bin/clickhouse
2022.04.28 22:38:16.159329 [ 42106 ] {} <Fatal> BaseDaemon: 15. /build/build_docker/../src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:32: DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x27eaf7b8 in /usr/bin/clickhouse
2022.04.28 22:38:16.456329 [ 42106 ] {} <Fatal> BaseDaemon: 16. /build/build_docker/../contrib/libcxx/include/type_traits:3640: decltype(static_cast<DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&>(fp)()) std::__1::__invoke<DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&>(DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x27eaf775 in /usr/bin/clickhouse
2022.04.28 22:38:16.727666 [ 42106 ] {} <Fatal> BaseDaemon: 17. /build/build_docker/../contrib/libcxx/include/__functional/invoke.h:62: void std::__1::__invoke_void_return_wrapper<void, true>::__call<DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&>(DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x27eaf73d in /usr/bin/clickhouse
2022.04.28 22:38:17.014616 [ 42106 ] {} <Fatal> BaseDaemon: 18. /build/build_docker/../contrib/libcxx/include/__functional/function.h:230: std::__1::__function::__default_alloc_func<DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0, void ()>::operator()() @ 0x27eaf715 in /usr/bin/clickhouse
2022.04.28 22:38:17.270185 [ 42106 ] {} <Fatal> BaseDaemon: 19. /build/build_docker/../contrib/libcxx/include/__functional/function.h:711: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0, void ()> >(std::__1::__function::__policy_storage const*) @ 0x27eaf6dd in /usr/bin/clickhouse
2022.04.28 22:38:17.386299 [ 42106 ] {} <Fatal> BaseDaemon: 20. /build/build_docker/../contrib/libcxx/include/__functional/function.h:843: std::__1::__function::__policy_func<void ()>::operator()() const @ 0x17bd6386 in /usr/bin/clickhouse
2022.04.28 22:38:17.495373 [ 42106 ] {} <Fatal> BaseDaemon: 21. /build/build_docker/../contrib/libcxx/include/__functional/function.h:1184: std::__1::function<void ()>::operator()() const @ 0x17bd28b5 in /usr/bin/clickhouse
2022.04.28 22:38:17.695008 [ 42106 ] {} <Fatal> BaseDaemon: 22. /build/build_docker/../src/Core/BackgroundSchedulePool.cpp:105: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x25ccaf0b in /usr/bin/clickhouse
2022.04.28 22:38:17.899123 [ 42106 ] {} <Fatal> BaseDaemon: 23. /build/build_docker/../src/Core/BackgroundSchedulePool.cpp:18: DB::TaskNotification::execute() @ 0x25ccf301 in /usr/bin/clickhouse
2022.04.28 22:38:18.127813 [ 42106 ] {} <Fatal> BaseDaemon: 24. /build/build_docker/../src/Core/BackgroundSchedulePool.cpp:263: DB::BackgroundSchedulePool::threadFunction() @ 0x25cccf1a in /usr/bin/clickhouse
2022.04.28 22:38:18.337119 [ 42106 ] {} <Fatal> BaseDaemon: 25. /build/build_docker/../src/Core/BackgroundSchedulePool.cpp:160: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1::operator()() const @ 0x25ccdff8 in /usr/bin/clickhouse
2022.04.28 22:38:18.549728 [ 42106 ] {} <Fatal> BaseDaemon: 26. /build/build_docker/../contrib/libcxx/include/type_traits:3648: decltype(static_cast<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&>(fp)()) std::__1::__invoke_constexpr<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&) @ 0x25ccdfd5 in /usr/bin/clickhouse
2022.04.28 22:38:18.762608 [ 42106 ] {} <Fatal> BaseDaemon: 27. /build/build_docker/../contrib/libcxx/include/tuple:1595: decltype(auto) std::__1::__apply_tuple_impl<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&, std::__1::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&, std::__1::tuple<>&, std::__1::__tuple_indices<>) @ 0x25ccdf81 in /usr/bin/clickhouse
2022.04.28 22:38:19.049264 [ 42106 ] {} <Fatal> BaseDaemon: 28. /build/build_docker/../contrib/libcxx/include/tuple:1604: decltype(auto) std::__1::apply<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&, std::__1::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&, std::__1::tuple<>&) @ 0x25ccde92 in /usr/bin/clickhouse
2022.04.28 22:38:19.291147 [ 42106 ] {} <Fatal> BaseDaemon: 29. /build/build_docker/../src/Common/ThreadPool.h:188: ThreadFromGlobalPool::ThreadFromGlobalPool<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&)::'lambda'()::operator()() @ 0x25ccdd76 in /usr/bin/clickhouse
2022.04.28 22:38:19.589198 [ 42106 ] {} <Fatal> BaseDaemon: 30. /build/build_docker/../contrib/libcxx/include/type_traits:3640: decltype(static_cast<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&) @ 0x25ccdc55 in /usr/bin/clickhouse
2022.04.28 22:38:19.790383 [ 42106 ] {} <Fatal> BaseDaemon: 31. /build/build_docker/../contrib/libcxx/include/__functional/invoke.h:62: void std::__1::__invoke_void_return_wrapper<void, true>::__call<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&)::'lambda'()&>(ThreadFromGlobalPool::ThreadFromGlobalPool<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&)::'lambda'()&) @ 0x25ccdc1d in /usr/bin/clickhouse
2022.04.28 22:38:20.006632 [ 42106 ] {} <Fatal> BaseDaemon: 32. /build/build_docker/../contrib/libcxx/include/__functional/function.h:230: std::__1::__function::__default_alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&)::'lambda'(), void ()>::operator()() @ 0x25ccdbf5 in /usr/bin/clickhouse
2022.04.28 22:38:20.284663 [ 42106 ] {} <Fatal> BaseDaemon: 33. /build/build_docker/../contrib/libcxx/include/__functional/function.h:711: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, unsigned long, char const*)::$_1&&)::'lambda'(), void ()> >(std::__1::__function::__policy_storage const*) @ 0x25ccdbc0 in /usr/bin/clickhouse
2022.04.28 22:38:20.402565 [ 42106 ] {} <Fatal> BaseDaemon: 34. /build/build_docker/../contrib/libcxx/include/__functional/function.h:843: std::__1::__function::__policy_func<void ()>::operator()() const @ 0x17bd6386 in /usr/bin/clickhouse
2022.04.28 22:38:20.508186 [ 42106 ] {} <Fatal> BaseDaemon: 35. /build/build_docker/../contrib/libcxx/include/__functional/function.h:1184: std::__1::function<void ()>::operator()() const @ 0x17bd28b5 in /usr/bin/clickhouse
2022.04.28 22:38:20.686757 [ 42106 ] {} <Fatal> BaseDaemon: 36. /build/build_docker/../src/Common/ThreadPool.cpp:281: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x17c82a0f in /usr/bin/clickhouse
2022.04.28 22:38:20.951116 [ 42106 ] {} <Fatal> BaseDaemon: 37. /build/build_docker/../src/Common/ThreadPool.cpp:143: void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()::operator()() const @ 0x17c89424 in /usr/bin/clickhouse
2022.04.28 22:38:21.245823 [ 42106 ] {} <Fatal> BaseDaemon: 38. /build/build_docker/../contrib/libcxx/include/type_traits:3640: decltype(static_cast<void>(fp)()) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>(void&&) @ 0x17c893b5 in /usr/bin/clickhouse
2022.04.28 22:38:21.419907 [ 42106 ] {} <Fatal> BaseDaemon: 39. /build/build_docker/../contrib/libcxx/include/thread:283: void std::__1::__thread_execute<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'()>(std::__1::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>&, std::__1::__tuple_indices<>) @ 0x17c892e5 in /usr/bin/clickhouse
2022.04.28 22:38:21.681073 [ 42106 ] {} <Fatal> BaseDaemon: 40. /build/build_docker/../contrib/libcxx/include/thread:293: 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*) @ 0x17c88c22 in /usr/bin/clickhouse
2022.04.28 22:38:21.681286 [ 42106 ] {} <Fatal> BaseDaemon: 41. ? @ 0x7faa983a1609 in ?
2022.04.28 22:38:21.681438 [ 42106 ] {} <Fatal> BaseDaemon: 42. __clone @ 0x7faa982c6163 in ?
2022.04.28 22:38:23.606197 [ 42106 ] {} <Fatal> BaseDaemon: Calculated checksum of the binary: 1A7F5A6C67EA50CF8154F164917E6257. There is no information about the reference checksum.
2022.04.28 22:38:24.621369 [ 388 ] {} <Fatal> Application: Child process was terminated by signal 6.
```

Was caught in CI test: https://s3.amazonaws.com/clickhouse-test-reports/36667/d295de1689189b844a4cd42c7b46a39de1b5ec7d/stateless_tests__debug__actions__[1/3].html
current_zookeeper->get(zookeeper_path + "/metadata", &metadata_stat);
                metadata_version = metadata_stat.version;
            }
            catch (Coordination::Exception & e)
            {
                if (!is_first_replica && e.code == Coordination::Error::ZNONODE)
                    throw Exception("Table " + zookeeper_path + " was suddenly removed.", ErrorCodes::ALL_REPLICAS_LOST);
                else
                    throw;
            }
            if (!is_first_replica)
                createReplica(metadata_snapshot);
        }
        catch (...)
        {
            
            dropIfEmpty();
            throw;
        }
    }
    else
    {
        
        String replica_metadata;
        const bool replica_metadata_exists = current_zookeeper->tryGet(replica_path + "/metadata", replica_metadata);
        if (!replica_metadata_exists || replica_metadata.empty())
        {
            
            other_replicas_fixed_granularity = checkFixedGranularityInZookeeper();
            ReplicatedMergeTreeTableMetadata current_metadata(*this, metadata_snapshot);