Skip to content

Logical error: Invalid storage definition in metadata file: it's a bug or result of manual intervention in metadata files #60349

@kssenii

Description

@kssenii

https://s3.amazonaws.com/clickhouse-test-reports/60282/222323f2934d13dfa2b2f5ebea9b4ee0867c4722/stress_test__asan_.html

Logical error:

throw Exception(ErrorCodes::LOGICAL_ERROR, "Invalid storage definition in metadata file: "
"it's a bug or result of manual intervention in metadata files");

Logs before the exception:

2024.02.22 21:20:36.533429 [ 38038 ] {} <Debug> test_13.table_to_merge_b (6eb29fd1-c217-417d-a122-aa6fff688c29): Loading data parts
2024.02.22 21:20:36.543246 [ 38038 ] {} <Test> test_13.table_to_merge_b (6eb29fd1-c217-417d-a122-aa6fff688c29): loadDataParts: clearing data_parts_indexes (had 0 parts)
2024.02.22 21:20:36.543287 [ 38038 ] {} <Trace> test_13.table_to_merge_b (6eb29fd1-c217-417d-a122-aa6fff688c29): Will load 2 parts using up to 64 threads
2024.02.22 21:20:36.657780 [ 38038 ] {} <Debug> test_13.table_to_merge_b (6eb29fd1-c217-417d-a122-aa6fff688c29): Loaded data parts (2 items)
2024.02.22 21:20:36.658046 [ 38038 ] {} <Trace> DatabaseAtomic (test_13): Loading table test_13.test_02428_pv4
2024.02.22 21:20:36.659382 [ 38038 ] {} <Fatal> : Logical error: 'Invalid storage definition in metadata file: it's a bug or result of manual intervention in metadata files'.

test probably this one:
https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/02420_final_setting.sql

Stacktrace:

2024.02.22 21:20:36.659382 [ 38038 ] {} <Fatal> : Logical error: 'Invalid storage definition in metadata file: it's a bug or result of manual intervention in metadata files'.
2024.02.22 21:20:36.682586 [ 38087 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
2024.02.22 21:20:36.685801 [ 38087 ] {} <Fatal> BaseDaemon: (version 24.2.1.1, build id: A85995AC49F60C41A81B793E1AB83A8A6E58DE1A, git hash: 55af49842ddfb4825773019f4626393fafdc02dd) (from thread 38038) Received signal 6
2024.02.22 21:20:36.686345 [ 38087 ] {} <Fatal> BaseDaemon: Signal description: Aborted
2024.02.22 21:20:36.686789 [ 38087 ] {} <Fatal> BaseDaemon: 
2024.02.22 21:20:36.688150 [ 38087 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007f9505fdb9fc 0x00007f9505f87476 0x00007f9505f6d7f3 0x000055dce18e2d7d 0x000055dce18e4629 0x000055dccf06ce9b 0x000055dcf188a693 0x000055dcf18e72b8 0x000055dcf18f91a2 0x000055dce1e7c0e4 0x000055dce1b09e9b 0x000055dce1b12a33 0x000055dce1b0206d 0x000055dce1b0e12d 0x000055dccf01b61b 0x00007f9505fd9ac3 0x00007f950606b850
2024.02.22 21:20:36.694070 [ 38087 ] {} <Fatal> BaseDaemon: ########################################
2024.02.22 21:20:36.698747 [ 38087 ] {} <Fatal> BaseDaemon: (version 24.2.1.1, build id: A85995AC49F60C41A81B793E1AB83A8A6E58DE1A, git hash: 55af49842ddfb4825773019f4626393fafdc02dd) (from thread 38038) (no query) Received signal Aborted (6)
2024.02.22 21:20:36.702031 [ 38087 ] {} <Fatal> BaseDaemon: 
2024.02.22 21:20:36.704136 [ 38087 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007f9505fdb9fc 0x00007f9505f87476 0x00007f9505f6d7f3 0x000055dce18e2d7d 0x000055dce18e4629 0x000055dccf06ce9b 0x000055dcf188a693 0x000055dcf18e72b8 0x000055dcf18f91a2 0x000055dce1e7c0e4 0x000055dce1b09e9b 0x000055dce1b12a33 0x000055dce1b0206d 0x000055dce1b0e12d 0x000055dccf01b61b 0x00007f9505fd9ac3 0x00007f950606b850
2024.02.22 21:20:36.708381 [ 38087 ] {} <Fatal> BaseDaemon: 3. ? @ 0x00007f9505fdb9fc
2024.02.22 21:20:36.711140 [ 38087 ] {} <Fatal> BaseDaemon: 4. ? @ 0x00007f9505f87476
2024.02.22 21:20:36.712229 [ 38087 ] {} <Fatal> BaseDaemon: 5. ? @ 0x00007f9505f6d7f3
2024.02.22 21:20:37.062080 [ 38087 ] {} <Fatal> BaseDaemon: 6.0. inlined from ./contrib/llvm-project/libcxx/include/atomic:958: int std::__cxx_atomic_load[abi:v15000]<int>(std::__cxx_atomic_base_impl<int> const*, std::memory_order)
2024.02.22 21:20:37.062199 [ 38087 ] {} <Fatal> BaseDaemon: 6.1. inlined from ./contrib/llvm-project/libcxx/include/atomic:1588: std::__atomic_base<int, false>::load[abi:v15000](std::memory_order) const
2024.02.22 21:20:37.062293 [ 38087 ] {} <Fatal> BaseDaemon: 6.2. inlined from ./contrib/llvm-project/libcxx/include/atomic:1592: std::__atomic_base<int, false>::operator int[abi:v15000]() const
2024.02.22 21:20:37.062340 [ 38087 ] {} <Fatal> BaseDaemon: 6.3. inlined from ./base/poco/Foundation/include/Poco/Logger.h:2352: Poco::Logger::is(int) const
2024.02.22 21:20:37.066035 [ 38087 ] {} <Fatal> BaseDaemon: 6. ./build_docker/./src/Common/Exception.cpp:42: DB::abortOnFailedAssertion(String const&) @ 0x000000001d412d7d in /usr/bin/clickhouse
2024.02.22 21:20:37.396449 [ 38087 ] {} <Fatal> BaseDaemon: 7.0. inlined from ./contrib/llvm-project/libcxx/include/vector:537: std::vector<void*, std::allocator<void*>>::size[abi:v15000]() const
2024.02.22 21:20:37.396574 [ 38087 ] {} <Fatal> BaseDaemon: 7.1. inlined from ./build_docker/./src/Common/Exception.cpp:191: DB::Exception::getStackFramePointers() const
2024.02.22 21:20:37.397052 [ 38087 ] {} <Fatal> BaseDaemon: 7. ./build_docker/./src/Common/Exception.cpp:100: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000001d414629 in /usr/bin/clickhouse
2024.02.22 21:20:45.063176 [ 38087 ] {} <Fatal> BaseDaemon: 8. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000ab9ce9b in /usr/bin/clickhouse
2024.02.22 21:20:45.431793 [ 38087 ] {} <Fatal> BaseDaemon: 9. ./build_docker/./src/Databases/DatabaseOnDisk.cpp:94: DB::createTableFromAST(DB::ASTCreateQuery, String const&, String const&, std::shared_ptr<DB::Context>, bool) @ 0x000000002d3ba693 in /usr/bin/clickhouse
2024.02.22 21:20:45.620247 [ 38087 ] {} <Fatal> BaseDaemon: 10. ./build_docker/./src/Databases/DatabaseOrdinary.cpp:148: DB::DatabaseOrdinary::loadTableFromMetadata(std::shared_ptr<DB::Context>, String const&, DB::QualifiedTableName const&, std::shared_ptr<DB::IAST> const&, DB::LoadingStrictnessLevel) @ 0x000000002d4172b8 in /usr/bin/clickhouse
2024.02.22 21:20:45.880972 [ 38087 ] {} <Fatal> BaseDaemon: 11. ./contrib/llvm-project/libcxx/include/__functional/function.h:717: ? @ 0x000000002d4291a2 in /usr/bin/clickhouse
2024.02.22 21:20:45.961769 [ 38087 ] {} <Fatal> BaseDaemon: 12. ./build_docker/./src/Common/AsyncLoader.cpp:864: DB::AsyncLoader::worker(DB::AsyncLoader::Pool&) @ 0x000000001d9ac0e4 in /usr/bin/clickhouse
2024.02.22 21:20:46.047779 [ 38087 ] {} <Fatal> BaseDaemon: 13. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001d639e9b in /usr/bin/clickhouse
2024.02.22 21:20:46.114837 [ 38087 ] {} <Fatal> BaseDaemon: 14. ./src/Common/ThreadPool.h:224: ThreadFromGlobalPoolImpl<false>::ThreadFromGlobalPoolImpl<void ThreadPoolImpl<ThreadFromGlobalPoolImpl<false>>::scheduleImpl<void>(std::function<void ()>, Priority, std::optional<unsigned long>, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x000000001d642a33 in /usr/bin/clickhouse
2024.02.22 21:20:46.189634 [ 38087 ] {} <Fatal> BaseDaemon: 15. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001d63206d in /usr/bin/clickhouse
2024.02.22 21:20:46.289061 [ 38087 ] {} <Fatal> BaseDaemon: 16.0. inlined from ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: std::unique_ptr<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, Priority, std::optional<unsigned long>, bool)::'lambda0'()>, std::default_delete<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, Priority, std::optional<unsigned long>, bool)::'lambda0'()>>>::reset[abi:v15000](std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, Priority, std::optional<unsigned long>, bool)::'lambda0'()>*)
2024.02.22 21:20:46.289140 [ 38087 ] {} <Fatal> BaseDaemon: 16.1. inlined from ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:259: ~unique_ptr
2024.02.22 21:20:46.289175 [ 38087 ] {} <Fatal> BaseDaemon: 16. ./contrib/llvm-project/libcxx/include/thread:297: void* std::__thread_proxy[abi:v15000]<std::tuple<std::unique_ptr<std::__thread_struct, std::default_delete<std::__thread_struct>>, void ThreadPoolImpl<std::thread>::scheduleImpl<void>(std::function<void ()>, Priority, std::optional<unsigned long>, bool)::'lambda0'()>>(void*) @ 0x000000001d63e12d in /usr/bin/clickhouse
2024.02.22 21:20:53.793279 [ 38087 ] {} <Fatal> BaseDaemon: 17. asan_thread_start(void*) @ 0x000000000ab4b61b in /usr/bin/clickhouse
2024.02.22 21:20:53.793334 [ 38087 ] {} <Fatal> BaseDaemon: 18. ? @ 0x00007f9505fd9ac3
2024.02.22 21:20:53.793351 [ 38087 ] {} <Fatal> BaseDaemon: 19. ? @ 0x00007f950606b850
2024.02.22 21:20:53.793377 [ 38087 ] {} <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read.
2024.02.22 21:21:10.358599 [ 38087 ] {} <Fatal> BaseDaemon: This ClickHouse version is not official and should be upgraded to the official build.
2024.02.22 21:21:13.919412 [ 37232 ] {} <Fatal> Application: Child process was terminated by signal 6.
2024.02.22 21:22:12.133872 [ 39156 ] {} <Fatal> : Logical error: 'Invalid storage definition in metadata file: it's a bug or result of manual intervention in metadata files'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzProblem found by one of the fuzzers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions