-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Logical error: 'Cannot add ZooKeeper operation because query is executed. It's a bug.' #38034
Copy link
Copy link
Closed
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI
Description
Describe the bug
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:30:23.596081 [ 3394 ] {c23a2b42-a154-41ac-bdef-3db9647f5798} <Fatal> : Logical error: 'Cannot add ZooKeeper operation because query is executed. It's a bug.'.
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:00.443184 [ 7729 ] {} <Fatal> BaseDaemon: ########################################
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:00.741247 [ 7729 ] {} <Fatal> BaseDaemon: (version 22.6.1.1, build id: 820D149CE02D7721) (from thread 3394) (query_id: c23a2b42-a154-41ac-bdef-3db9647f5798) (query: /* ddl_entry=query-0000000004 */ CREATE OR REPLACE TABLE test_kgds28.t1 UUID '471c0acf-4712-446b-8eff-db74202a7ae5' (`n` UInt64, `s` Nullable(String)) ENGINE = MergeTree ORDER BY n) Received signal Aborted (6)
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:00.884159 [ 7729 ] {} <Fatal> BaseDaemon:
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:01.021867 [ 7729 ] {} <Fatal> BaseDaemon: Stack trace: 0x7fc30131600b 0x7fc3012f5859 0x16d21786 0x16d21815 0x16d218c5 0x16d47c65 0x25423234 0x254209f6 0x261842c8 0x261824b4 0x26181c32 0x260d992e 0x260d8478 0x260dd7db 0x266bd893 0x266c1621 0x259e9d02 0x259e8c2d 0x2542a753 0x25417404 0x260d832f 0x260dd7db 0x266bd893 0x266ba7a4 0x2766f163 0x2767dd25 0x2b9f6d79 0x2b9f7586 0x2bc3c2f4 0x2bc38e7a 0x2bc37c5e 0x7fc3014cd609 0x7fc3013f2133
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:01.038551 [ 7729 ] {} <Fatal> BaseDaemon: 4. raise @ 0x7fc30131600b in ?
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:01.061143 [ 7729 ] {} <Fatal> BaseDaemon: 5. abort @ 0x7fc3012f5859 in ?
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:01.427022 [ 7729 ] {} <Fatal> BaseDaemon: 6. /build/build_docker/../src/Common/Exception.cpp:40: DB::abortOnFailedAssertion(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x16d21786 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:02.000178 [ 7729 ] {} <Fatal> BaseDaemon: 7. /build/build_docker/../src/Common/Exception.cpp:63: 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&) @ 0x16d21815 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:02.241542 [ 7729 ] {} <Fatal> BaseDaemon: 8. /build/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) @ 0x16d218c5 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:02.689924 [ 7729 ] {} <Fatal> BaseDaemon: 9. /build/build_docker/../src/Common/Exception.h:33: DB::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x16d47c65 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:03.309187 [ 7729 ] {} <Fatal> BaseDaemon: 10. /build/build_docker/../src/Interpreters/DDLTask.h:199: DB::ZooKeeperMetadataTransaction::addOp(std::__1::shared_ptr<Coordination::Request>&&) @ 0x25423234 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:03.941625 [ 7729 ] {} <Fatal> BaseDaemon: 11. /build/build_docker/../src/Databases/DatabaseReplicated.cpp:817: DB::DatabaseReplicated::dropTable(std::__1::shared_ptr<DB::Context const>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) @ 0x254209f6 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:04.419293 [ 7729 ] {} <Fatal> BaseDaemon: 12. /build/build_docker/../src/Interpreters/InterpreterDropQuery.cpp:247: DB::InterpreterDropQuery::executeToTableImpl(std::__1::shared_ptr<DB::Context const>, DB::ASTDropQuery&, std::__1::shared_ptr<DB::IDatabase>&, StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag>&) @ 0x261842c8 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:04.930927 [ 7729 ] {} <Fatal> BaseDaemon: 13. /build/build_docker/../src/Interpreters/InterpreterDropQuery.cpp:91: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x261824b4 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:05.221556 [ 7729 ] {} <Fatal> BaseDaemon: 14. /build/build_docker/../src/Interpreters/InterpreterDropQuery.cpp:68: DB::InterpreterDropQuery::execute() @ 0x26181c32 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:06.594456 [ 7729 ] {} <Fatal> BaseDaemon: 15. /build/build_docker/../src/Interpreters/InterpreterCreateQuery.cpp:1449: DB::InterpreterCreateQuery::doCreateOrReplaceTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&) @ 0x260d992e in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:08.117204 [ 7729 ] {} <Fatal> BaseDaemon: 16. /build/build_docker/../src/Interpreters/InterpreterCreateQuery.cpp:1146: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x260d8478 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:09.222304 [ 7729 ] {} <Fatal> BaseDaemon: 17. /build/build_docker/../src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x260dd7db in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:10.113431 [ 7729 ] {} <Fatal> BaseDaemon: 18. /build/build_docker/../src/Interpreters/executeQuery.cpp:675: DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x266bd893 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:11.212926 [ 7729 ] {} <Fatal> BaseDaemon: 19. /build/build_docker/../src/Interpreters/executeQuery.cpp:1107: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr<DB::Context>, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>, std::__1::optional<DB::FormatSettings> const&) @ 0x266c1621 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:15.522156 [ 7729 ] {} <Fatal> BaseDaemon: 20. /build/build_docker/../src/Interpreters/DDLWorker.cpp:438: DB::DDLWorker::tryExecuteQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::DDLTaskBase&, std::__1::shared_ptr<zkutil::ZooKeeper> const&) @ 0x259e9d02 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:16.306289 [ 7729 ] {} <Fatal> BaseDaemon: 21. /build/build_docker/../src/Interpreters/DDLWorker.cpp:595: DB::DDLWorker::processTask(DB::DDLTaskBase&, std::__1::shared_ptr<zkutil::ZooKeeper> const&) @ 0x259e8c2d in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:19.099095 [ 7729 ] {} <Fatal> BaseDaemon: 22. /build/build_docker/../src/Databases/DatabaseReplicatedWorker.cpp:231: DB::DatabaseReplicatedDDLWorker::tryEnqueueAndExecuteEntry(DB::DDLLogEntry&, std::__1::shared_ptr<DB::Context const>) @ 0x2542a753 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:19.702464 [ 7729 ] {} <Fatal> BaseDaemon: 23. /build/build_docker/../src/Databases/DatabaseReplicated.cpp:489: DB::DatabaseReplicated::tryEnqueueReplicatedDDL(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const>, bool) @ 0x25417404 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.err.log:2022.06.13 16:44:20.593855 [ 672 ] {} <Fatal> Application: Child process was terminated by signal 6.
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:30:23.596081 [ 3394 ] {c23a2b42-a154-41ac-bdef-3db9647f5798} <Fatal> : Logical error: 'Cannot add ZooKeeper operation because query is executed. It's a bug.'.
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:00.443184 [ 7729 ] {} <Fatal> BaseDaemon: ########################################
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:00.741247 [ 7729 ] {} <Fatal> BaseDaemon: (version 22.6.1.1, build id: 820D149CE02D7721) (from thread 3394) (query_id: c23a2b42-a154-41ac-bdef-3db9647f5798) (query: /* ddl_entry=query-0000000004 */ CREATE OR REPLACE TABLE test_kgds28.t1 UUID '471c0acf-4712-446b-8eff-db74202a7ae5' (`n` UInt64, `s` Nullable(String)) ENGINE = MergeTree ORDER BY n) Received signal Aborted (6)
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:00.884159 [ 7729 ] {} <Fatal> BaseDaemon:
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:01.021867 [ 7729 ] {} <Fatal> BaseDaemon: Stack trace: 0x7fc30131600b 0x7fc3012f5859 0x16d21786 0x16d21815 0x16d218c5 0x16d47c65 0x25423234 0x254209f6 0x261842c8 0x261824b4 0x26181c32 0x260d992e 0x260d8478 0x260dd7db 0x266bd893 0x266c1621 0x259e9d02 0x259e8c2d 0x2542a753 0x25417404 0x260d832f 0x260dd7db 0x266bd893 0x266ba7a4 0x2766f163 0x2767dd25 0x2b9f6d79 0x2b9f7586 0x2bc3c2f4 0x2bc38e7a 0x2bc37c5e 0x7fc3014cd609 0x7fc3013f2133
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:01.038551 [ 7729 ] {} <Fatal> BaseDaemon: 4. raise @ 0x7fc30131600b in ?
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:01.061143 [ 7729 ] {} <Fatal> BaseDaemon: 5. abort @ 0x7fc3012f5859 in ?
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:01.427022 [ 7729 ] {} <Fatal> BaseDaemon: 6. /build/build_docker/../src/Common/Exception.cpp:40: DB::abortOnFailedAssertion(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x16d21786 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:02.000178 [ 7729 ] {} <Fatal> BaseDaemon: 7. /build/build_docker/../src/Common/Exception.cpp:63: 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&) @ 0x16d21815 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:02.241542 [ 7729 ] {} <Fatal> BaseDaemon: 8. /build/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) @ 0x16d218c5 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:02.689924 [ 7729 ] {} <Fatal> BaseDaemon: 9. /build/build_docker/../src/Common/Exception.h:33: DB::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x16d47c65 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:03.309187 [ 7729 ] {} <Fatal> BaseDaemon: 10. /build/build_docker/../src/Interpreters/DDLTask.h:199: DB::ZooKeeperMetadataTransaction::addOp(std::__1::shared_ptr<Coordination::Request>&&) @ 0x25423234 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:03.941625 [ 7729 ] {} <Fatal> BaseDaemon: 11. /build/build_docker/../src/Databases/DatabaseReplicated.cpp:817: DB::DatabaseReplicated::dropTable(std::__1::shared_ptr<DB::Context const>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) @ 0x254209f6 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:04.419293 [ 7729 ] {} <Fatal> BaseDaemon: 12. /build/build_docker/../src/Interpreters/InterpreterDropQuery.cpp:247: DB::InterpreterDropQuery::executeToTableImpl(std::__1::shared_ptr<DB::Context const>, DB::ASTDropQuery&, std::__1::shared_ptr<DB::IDatabase>&, StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag>&) @ 0x261842c8 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:04.930927 [ 7729 ] {} <Fatal> BaseDaemon: 13. /build/build_docker/../src/Interpreters/InterpreterDropQuery.cpp:91: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x261824b4 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:05.221556 [ 7729 ] {} <Fatal> BaseDaemon: 14. /build/build_docker/../src/Interpreters/InterpreterDropQuery.cpp:68: DB::InterpreterDropQuery::execute() @ 0x26181c32 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:06.594456 [ 7729 ] {} <Fatal> BaseDaemon: 15. /build/build_docker/../src/Interpreters/InterpreterCreateQuery.cpp:1449: DB::InterpreterCreateQuery::doCreateOrReplaceTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&) @ 0x260d992e in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:08.117204 [ 7729 ] {} <Fatal> BaseDaemon: 16. /build/build_docker/../src/Interpreters/InterpreterCreateQuery.cpp:1146: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x260d8478 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:09.222304 [ 7729 ] {} <Fatal> BaseDaemon: 17. /build/build_docker/../src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x260dd7db in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:10.113431 [ 7729 ] {} <Fatal> BaseDaemon: 18. /build/build_docker/../src/Interpreters/executeQuery.cpp:675: DB::executeQueryImpl(char const*, char const*, std::__1::shared_ptr<DB::Context>, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x266bd893 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:11.212926 [ 7729 ] {} <Fatal> BaseDaemon: 19. /build/build_docker/../src/Interpreters/executeQuery.cpp:1107: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr<DB::Context>, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>, std::__1::optional<DB::FormatSettings> const&) @ 0x266c1621 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:15.522156 [ 7729 ] {} <Fatal> BaseDaemon: 20. /build/build_docker/../src/Interpreters/DDLWorker.cpp:438: DB::DDLWorker::tryExecuteQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::DDLTaskBase&, std::__1::shared_ptr<zkutil::ZooKeeper> const&) @ 0x259e9d02 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:16.306289 [ 7729 ] {} <Fatal> BaseDaemon: 21. /build/build_docker/../src/Interpreters/DDLWorker.cpp:595: DB::DDLWorker::processTask(DB::DDLTaskBase&, std::__1::shared_ptr<zkutil::ZooKeeper> const&) @ 0x259e8c2d in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:19.099095 [ 7729 ] {} <Fatal> BaseDaemon: 22. /build/build_docker/../src/Databases/DatabaseReplicatedWorker.cpp:231: DB::DatabaseReplicatedDDLWorker::tryEnqueueAndExecuteEntry(DB::DDLLogEntry&, std::__1::shared_ptr<DB::Context const>) @ 0x2542a753 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:19.702464 [ 7729 ] {} <Fatal> BaseDaemon: 23. /build/build_docker/../src/Databases/DatabaseReplicated.cpp:489: DB::DatabaseReplicated::tryEnqueueReplicatedDDL(std::__1::shared_ptr<DB::IAST> const&, std::__1::shared_ptr<DB::Context const>, bool) @ 0x25417404 in /usr/bin/clickhouse
/var/log/clickhouse-server/clickhouse-server.stress.log:2022.06.13 16:44:20.593855 [ 672 ] {} <Fatal> Application: Child process was terminated by signal 6.
[gdb.log.gz](https://github.com/ClickHouse/ClickHouse/files/8894812/gdb.log.gz)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI