-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Logical error: Cache writer not initialized #36140
Copy link
Copy link
Closed
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzers
Description
2022.04.11 14:27:42.283998 [ 962 ] {} <Error> static void DB::WriteBufferFromS3::finalizeCacheIfNeeded(std::optional<FileSegmentsHolder> &): Code: 49. DB::Exception: Cache writer not initialized. (LOGICAL_ERROR), Stack trace (when copying this message, always include the lines below):
0. ./build_docker/../contrib/libcxx/include/exception:0: Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x1fe35f1b in /usr/bin/clickhouse
1. ./build_docker/../src/Common/Exception.cpp:58: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xb23d0dc in /usr/bin/clickhouse
2. ./build_docker/../src/Common/Exception.h:0: DB::FileSegment::finalizeWrite() @ 0x18d24069 in /usr/bin/clickhouse
3. ./build_docker/../src/IO/WriteBufferFromS3.cpp:0: DB::WriteBufferFromS3::finalizeCacheIfNeeded(std::__1::optional<DB::FileSegmentsHolder>&) @ 0x19541072 in /usr/bin/clickhouse
4. ./build_docker/../src/IO/WriteBufferFromS3.cpp:430: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<DB::WriteBufferFromS3::makeSinglepartUpload()::$_1, void ()> >(std::__1::__function::__policy_storage const*) @ 0x19541d1b in /usr/bin/clickhouse
5. ./build_docker/../src/Interpreters/threadPoolCallbackRunner.cpp:36: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<auto DB::threadPoolCallbackRunner(ThreadPoolImpl<ThreadFromGlobalPool>&)::$_0::operator()<std::__1::function<void ()> >(std::__1::function<void ()>)::'lambda'(), void ()> >(std::__1::__function::__policy_storage const*) @ 0x1a22caa8 in /usr/bin/clickhouse
6. ./build_docker/../contrib/libcxx/include/__functional/function.h:832: ThreadPoolImpl<ThreadFromGlobalPool>::worker(std::__1::__list_iterator<ThreadFromGlobalPool, void*>) @ 0xb2cf7f8 in /usr/bin/clickhouse
7. ./build_docker/../src/Common/ThreadPool.cpp:0: ThreadFromGlobalPool::ThreadFromGlobalPool<void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0xb2d2059 in /usr/bin/clickhouse
8. ./build_docker/../contrib/libcxx/include/__functional/function.h:712: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<ThreadFromGlobalPool::ThreadFromGlobalPool<void ThreadPoolImpl<ThreadFromGlobalPool>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda0'()>(void&&)::'lambda'(), void ()> >(std::__1::__function::__policy_storage const*) @ 0xb2d1f02 in /usr/bin/clickhouse
9. ./build_docker/../contrib/libcxx/include/__functional/function.h:832: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0xb2cce2e in /usr/bin/clickhouse
10. ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:312: 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*) @ 0xb2d0671 in /usr/bin/clickhouse
11. __tsan_thread_start_func @ 0xb1843bd in /usr/bin/clickhouse
12. ? @ 0x7f435567e609 in ?
13. __clone @ 0x7f43555a3163 in ?
(version 22.4.1.1790)
cc: @kssenii
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzers