-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Logical error: Part is already written by concurrent request #42120
Copy link
Copy link
Closed
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzers
Description
2022.10.05 00:47:17.032381 [ 7099 ] {96887a4b-1ad8-4ecd-a896-09c0b484e1c8} <Fatal> : Logical error: 'Part with name -5_0_0_0 is already written by concurrent request. It should not happen for non-duplicate data parts because unique names are assigned for them. It's a bug'.
2022.10.05 00:48:14.402913 [ 50083 ] {} <Fatal> BaseDaemon: ########################################
2022.10.05 00:48:14.402984 [ 50083 ] {} <Fatal> BaseDaemon: (version 22.10.1.1, build id: A5CC905F77A70E42A002E7AC430369DE3673E94A) (from thread 7099) (query_id: 96887a4b-1ad8-4ecd-a896-09c0b484e1c8) (query: INSERT INTO concurrent_optimize_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(10000)) Received signal Aborted (6)
2022.10.05 00:48:14.425578 [ 50083 ] {} <Fatal> BaseDaemon:
2022.10.05 00:48:14.425676 [ 50083 ] {} <Fatal> BaseDaemon: Stack trace: 0x7fcf5c6c500b 0x7fcf5c6a4859 0x1f8a78a3 0x1f8a7b4f 0x17c844f9 0x2c327750 0x2c320f3f 0x2c31fbbf 0x2cb1e271 0x2c9ef853 0x2c9ef4d2 0x2c9ee508 0x2c61a454 0x2c60a4db 0x2c609d16 0x2c609aca 0x2c608f54 0x1f9809d3 0x1f9847a4 0x7fcf5c87c609 0x7fcf5c7a1133
2022.10.05 00:48:14.427550 [ 50083 ] {} <Fatal> BaseDaemon: 3. raise @ 0x7fcf5c6c500b in ?
2022.10.05 00:48:14.433409 [ 50083 ] {} <Fatal> BaseDaemon: 4. abort @ 0x7fcf5c6a4859 in ?
2022.10.05 00:48:14.497946 [ 50083 ] {} <Fatal> BaseDaemon: 5. ./build_docker/../src/Common/Exception.cpp:47: DB::abortOnFailedAssertion(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x1f8a78a3 in /usr/bin/clickhouse
2022.10.05 00:48:14.534059 [ 50083 ] {} <Fatal> BaseDaemon: 6. ./build_docker/../src/Common/Exception.cpp:70: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0x1f8a7b4f in /usr/bin/clickhouse
2022.10.05 00:48:16.211853 [ 50083 ] {} <Fatal> BaseDaemon: 7. DB::Exception::Exception<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(int, fmt::v8::basic_format_string<char, fmt::v8::type_identity<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>::type>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) @ 0x17c844f9 in /usr/bin/clickhouse
2022.10.05 00:48:16.361565 [ 50083 ] {} <Fatal> BaseDaemon: 8. ./build_docker/../src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:511: DB::ReplicatedMergeTreeSink::commitPart(std::__1::shared_ptr<zkutil::ZooKeeper>&, std::__1::shared_ptr<DB::IMergeTreeDataPart>&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<DB::IDataPartStorageBuilder>, unsigned long) @ 0x2c327750 in /usr/bin/clickhouse
2022.10.05 00:48:16.405698 [ 50083 ] {} <Fatal> BaseDaemon: 9. ./build_docker/../src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:270: DB::ReplicatedMergeTreeSink::finishDelayedChunk(std::__1::shared_ptr<zkutil::ZooKeeper>&) @ 0x2c320f3f in /usr/bin/clickhouse
2022.10.05 00:48:16.450121 [ 50083 ] {} <Fatal> BaseDaemon: 10.1. inlined from ./build_docker/../contrib/libcxx/include/__memory/compressed_pair.h:48: __compressed_pair_elem<std::nullptr_t, void>
2022.10.05 00:48:16.451439 [ 50083 ] {} <Fatal> BaseDaemon: 10.2. inlined from ./build_docker/../contrib/libcxx/include/__memory/compressed_pair.h:130: __compressed_pair<std::nullptr_t, std::__1::__default_init_tag>
2022.10.05 00:48:16.454206 [ 50083 ] {} <Fatal> BaseDaemon: 10.3. inlined from ./build_docker/../contrib/libcxx/include/vector:652: vector
2022.10.05 00:48:16.454256 [ 50083 ] {} <Fatal> BaseDaemon: 10. ./build_docker/../src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:231: DB::ReplicatedMergeTreeSink::consume(DB::Chunk) @ 0x2c31fbbf in /usr/bin/clickhouse
2022.10.05 00:48:16.469174 [ 50083 ] {} <Fatal> BaseDaemon: 11.1. inlined from ./build_docker/../src/Processors/Chunk.h:32: ~Chunk
2022.10.05 00:48:16.469225 [ 50083 ] {} <Fatal> BaseDaemon: 11. ./build_docker/../src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x2cb1e271 in /usr/bin/clickhouse
2022.10.05 00:48:16.496644 [ 50083 ] {} <Fatal> BaseDaemon: 12.1. inlined from ./build_docker/../src/Processors/Chunk.h:32: ~Chunk
2022.10.05 00:48:16.499248 [ 50083 ] {} <Fatal> BaseDaemon: 12.2. inlined from ./build_docker/../src/Processors/Transforms/ExceptionKeepingTransform.cpp:151: operator()
2022.10.05 00:48:16.499298 [ 50083 ] {} <Fatal> BaseDaemon: 12.3. inlined from ./build_docker/../contrib/libcxx/include/type_traits:3640: decltype(static_cast<DB::ExceptionKeepingTransform::work()::$_1&>(fp)()) std::__1::__invoke<DB::ExceptionKeepingTransform::work()::$_1&>(DB::ExceptionKeepingTransform::work()::$_1&)
2022.10.05 00:48:16.500414 [ 50083 ] {} <Fatal> BaseDaemon: 12.4. inlined from ./build_docker/../contrib/libcxx/include/__functional/invoke.h:61: void std::__1::__invoke_void_return_wrapper<void, true>::__call<DB::ExceptionKeepingTransform::work()::$_1&>(DB::ExceptionKeepingTransform::work()::$_1&)
2022.10.05 00:48:16.500454 [ 50083 ] {} <Fatal> BaseDaemon: 12.5. inlined from ./build_docker/../contrib/libcxx/include/__functional/function.h:230: std::__1::__function::__default_alloc_func<DB::ExceptionKeepingTransform::work()::$_1, void ()>::operator()()
2022.10.05 00:48:16.502101 [ 50083 ] {} <Fatal> BaseDaemon: 12. ./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::ExceptionKeepingTransform::work()::$_1, void ()> >(std::__1::__function::__policy_storage const*) @ 0x2c9ef853 in /usr/bin/clickhouse
2022.10.05 00:48:16.528925 [ 50083 ] {} <Fatal> BaseDaemon: 13. ./build_docker/../src/Processors/Transforms/ExceptionKeepingTransform.cpp:103: DB::runStep(std::__1::function<void ()>, DB::ThreadStatus*, std::__1::atomic<unsigned long>*) @ 0x2c9ef4d2 in /usr/bin/clickhouse
2022.10.05 00:48:16.549287 [ 50083 ] {} <Fatal> BaseDaemon: 14. ./build_docker/../src/Processors/Transforms/ExceptionKeepingTransform.cpp:0: DB::ExceptionKeepingTransform::work() @ 0x2c9ee508 in /usr/bin/clickhouse
2022.10.05 00:48:16.561338 [ 50083 ] {} <Fatal> BaseDaemon: 15.1. inlined from ./build_docker/../src/Processors/Executors/ExecutionThreadContext.cpp:50: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*)
2022.10.05 00:48:16.561409 [ 50083 ] {} <Fatal> BaseDaemon: 15. ./build_docker/../src/Processors/Executors/ExecutionThreadContext.cpp:92: DB::ExecutionThreadContext::executeTask() @ 0x2c61a454 in /usr/bin/clickhouse
2022.10.05 00:48:16.592468 [ 50083 ] {} <Fatal> BaseDaemon: 16. ./build_docker/../src/Processors/Executors/PipelineExecutor.cpp:228: DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) @ 0x2c60a4db in /usr/bin/clickhouse
2022.10.05 00:48:16.626827 [ 50083 ] {} <Fatal> BaseDaemon: 17. ./build_docker/../src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::executeImpl(unsigned long) @ 0x2c609d16 in /usr/bin/clickhouse
2022.10.05 00:48:16.665044 [ 50083 ] {} <Fatal> BaseDaemon: 18.1. inlined from ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:284: std::__1::unique_ptr<DB::ExecutingGraph, std::__1::default_delete<DB::ExecutingGraph> >::operator->() const
2022.10.05 00:48:16.666247 [ 50083 ] {} <Fatal> BaseDaemon: 18. ./build_docker/../src/Processors/Executors/PipelineExecutor.cpp:92: DB::PipelineExecutor::execute(unsigned long) @ 0x2c609aca in /usr/bin/clickhouse
2022.10.05 00:48:16.681484 [ 50083 ] {} <Fatal> BaseDaemon: 19.1. inlined from ./build_docker/../src/Processors/Executors/CompletedPipelineExecutor.cpp:0: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::__1::shared_ptr<DB::ThreadGroupStatus>, unsigned long)
2022.10.05 00:48:16.681563 [ 50083 ] {} <Fatal> BaseDaemon: 19.2. inlined from ./build_docker/../src/Processors/Executors/CompletedPipelineExecutor.cpp:79: operator()
2022.10.05 00:48:16.681611 [ 50083 ] {} <Fatal> BaseDaemon: 19.3. inlined from ./build_docker/../contrib/libcxx/include/type_traits:3648: decltype(static_cast<DB::CompletedPipelineExecutor::execute()::$_0&>(fp)()) std::__1::__invoke_constexpr<DB::CompletedPipelineExecutor::execute()::$_0&>(DB::CompletedPipelineExecutor::execute()::$_0&)
2022.10.05 00:48:16.684057 [ 50083 ] {} <Fatal> BaseDaemon: 19.4. inlined from ./build_docker/../contrib/libcxx/include/tuple:1595: decltype(auto) std::__1::__apply_tuple_impl<DB::CompletedPipelineExecutor::execute()::$_0&, std::__1::tuple<>&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>)
2022.10.05 00:48:16.685205 [ 50083 ] {} <Fatal> BaseDaemon: 19.5. inlined from ./build_docker/../contrib/libcxx/include/tuple:1604: decltype(auto) std::__1::apply<DB::CompletedPipelineExecutor::execute()::$_0&, std::__1::tuple<>&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::__1::tuple<>&)
2022.10.05 00:48:16.685270 [ 50083 ] {} <Fatal> BaseDaemon: 19.6. inlined from ./build_docker/../src/Common/ThreadPool.h:193: operator()
2022.10.05 00:48:16.685337 [ 50083 ] {} <Fatal> BaseDaemon: 19.7. inlined from ./build_docker/../contrib/libcxx/include/type_traits:3640: decltype(static_cast<DB::CompletedPipelineExecutor::execute()::$_0>(fp)()) std::__1::__invoke<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::CompletedPipelineExecutor::execute()::$_0>(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&)
2022.10.05 00:48:16.688094 [ 50083 ] {} <Fatal> BaseDaemon: 19.8. inlined from ./build_docker/../contrib/libcxx/include/__functional/invoke.h:61: void std::__1::__invoke_void_return_wrapper<void, true>::__call<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::CompletedPipelineExecutor::execute()::$_0>(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::CompletedPipelineExecutor::execute()::$_0>(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&)
2022.10.05 00:48:16.688166 [ 50083 ] {} <Fatal> BaseDaemon: 19.9. inlined from ./build_docker/../contrib/libcxx/include/__functional/function.h:230: std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::CompletedPipelineExecutor::execute()::$_0>(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()()
2022.10.05 00:48:16.691287 [ 50083 ] {} <Fatal> BaseDaemon: 19. ./build_docker/../contrib/libcxx/include/__functional/function.h:711: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::CompletedPipelineExecutor::execute()::$_0>(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()> >(std::__1::__function::__policy_storage const*) @ 0x2c608f54 in /usr/bin/clickhouse
2022.10.05 00:48:16.713144 [ 50083 ] {} <Fatal> BaseDaemon: 20.1. inlined from ./build_docker/../base/base/strong_typedef.h:23: StrongTypedef<std::__1::integral_constant<bool, true> >
2022.10.05 00:48:16.713202 [ 50083 ] {} <Fatal> BaseDaemon: 20.2. inlined from ./build_docker/../src/Common/OpenTelemetryTraceContext.h:39: DB::OpenTelemetry::Span::isTraceEnabled() const
2022.10.05 00:48:16.713258 [ 50083 ] {} <Fatal> BaseDaemon: 20. ./build_docker/../src/Common/ThreadPool.cpp:296: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x1f9809d3 in /usr/bin/clickhouse
2022.10.05 00:48:16.740449 [ 50083 ] {} <Fatal> BaseDaemon: 21. ./build_docker/../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>, bool)::'lambda0'()> >(void*) @ 0x1f9847a4 in /usr/bin/clickhouse
2022.10.05 00:48:16.742584 [ 50083 ] {} <Fatal> BaseDaemon: 22. ? @ 0x7fcf5c87c609 in ?
2022.10.05 00:48:16.745610 [ 50083 ] {} <Fatal> BaseDaemon: 23. clone @ 0x7fcf5c7a1133 in
Maybe related #28848.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzers