Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sigabrt while getting PostgreSQL table structure #57618

Merged
merged 1 commit into from Dec 7, 2023

Conversation

myrrc
Copy link
Contributor

@myrrc myrrc commented Dec 7, 2023

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Handle sigabrt case when getting PostgreSQl table structure with empty array

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-bugfix Pull request with bugfix, not backported by default label Dec 7, 2023
@robot-ch-test-poll2
Copy link
Contributor

robot-ch-test-poll2 commented Dec 7, 2023

This is an automated comment for commit 4ef9065 with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Successful checks
Check nameDescriptionStatus
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help✅ success
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker image for serversThe check to build and optionally push the mentioned image to docker hub✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integrational tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests✅ success
Mergeable CheckChecks if all other necessary checks are successful✅ success
Performance ComparisonMeasure changes in query performance. The performance test report is described in detail here. In square brackets are the optional part/total tests✅ success
Push to DockerhubThe check for building and pushing the CI related docker images to docker hub✅ success
SQLTestThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
SQLancerFuzzing tests that detect logical bugs with SQLancer tool✅ success
SqllogicRun clickhouse on the sqllogic test set against sqlite and checks that all statements are passed✅ success
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors✅ success
Style CheckRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success
Upgrade checkRuns stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts✅ success
Check nameDescriptionStatus
Bugfix validate checkChecks that either a new test (functional or integration) or there some changed tests that fail with the binary built on master branch❌ error
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR⏳ pending
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure

@myrrc
Copy link
Contributor Author

myrrc commented Dec 7, 2023

Reproduced on our side in 23.8.8.20

@myrrc myrrc changed the title Fix sigabrt when Postgre returns null as array_ndims for empty array while getting table structure Fix sigabrt while getting PostgreSQL table structure Dec 7, 2023
@jsc0218 jsc0218 self-assigned this Dec 7, 2023
@jsc0218 jsc0218 self-requested a review December 7, 2023 14:52
@myrrc
Copy link
Contributor Author

myrrc commented Dec 7, 2023

@jsc0218 If merged, backports to 23.8 would be highly appreciated

@myrrc
Copy link
Contributor Author

myrrc commented Dec 7, 2023

Stacktrace we got

2023.12.06 14:56:25.201382 [ 2148009 ] {7f44d1a1-8c4a-422e-9079-2fd17ca60d9a} <Debug> executeQuery: (from [::ffff:10.129.0.37]:26778, user: _backup_admin) SELECT database, name, engine, engine_full, create_table_query, data_paths, metadata_path, uuid FROM system.tables WHERE (empty('datago_backup') OR database = 'datago_backup') AND (empty([]) OR has(cast([], 'Array(String)'), name)) ORDER BY metadata_modification_time FORMAT JSON (stage: Complete)
...
2023.12.06 14:56:25.776450 [ 2146352 ] {} <Fatal> BaseDaemon: (version 23.8.8.20 (official build), build id: 23B01697700DF750C2BF947052EDDB0A21A28F7E, git hash: 5e012a03bf208d0a713c721fd43c228a7dbebf1d) (from thread 2148009) Terminate called for uncaught exception:
2023.12.06 14:56:25.776487 [ 2146352 ] {} <Fatal> BaseDaemon: std::exception. Code: 1001, type: pqxx::conversion_error, e.what() = Attempt to convert null to i., Stack trace (when copying this message, always include the lines below):

0. pqxx::internal::throw_null_conversion(String const&) @ 0x000000001675ee9e in /usr/bin/clickhouse
1. std::shared_ptr<DB::PostgreSQLTableStructure::ColumnsInfo> DB::readNamesAndTypesList<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool) @ 0x0000000011746fb2 in /usr/bin/clickhouse
2. DB::PostgreSQLTableStructure DB::fetchPostgreSQLTableStructure<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool, bool) @ 0x000000001174500d in /usr/bin/clickhouse
3. DB::fetchPostgreSQLTableStructure(pqxx::connection&, String const&, String const&, bool) @ 0x000000001174f896 in /usr/bin/clickhouse
4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776526 [ 2146352 ] {} <Fatal> BaseDaemon:
0. pqxx::internal::throw_null_conversion(String const&) @ 0x000000001675ee9e in /usr/bin/clickhouse
1. std::shared_ptr<DB::PostgreSQLTableStructure::ColumnsInfo> DB::readNamesAndTypesList<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool) @ 0x0000000011746fb2 in /usr/bin/clickhouse
2. DB::PostgreSQLTableStructure DB::fetchPostgreSQLTableStructure<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool, bool) @ 0x000000001174500d in /usr/bin/clickhouse
3. DB::fetchPostgreSQLTableStructure(pqxx::connection&, String const&, String const&, bool) @ 0x000000001174f896 in /usr/bin/clickhouse
4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776552 [ 2146352 ] {} <Fatal> BaseDaemon: 0. pqxx::internal::throw_null_conversion(String const&) @ 0x000000001675ee9e in /usr/bin/clickhouse
1. std::shared_ptr<DB::PostgreSQLTableStructure::ColumnsInfo> DB::readNamesAndTypesList<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool) @ 0x0000000011746fb2 in /usr/bin/clickhouse
2. DB::PostgreSQLTableStructure DB::fetchPostgreSQLTableStructure<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool, bool) @ 0x000000001174500d in /usr/bin/clickhouse
3. DB::fetchPostgreSQLTableStructure(pqxx::connection&, String const&, String const&, bool) @ 0x000000001174f896 in /usr/bin/clickhouse
4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776570 [ 2146352 ] {} <Fatal> BaseDaemon: 1. std::shared_ptr<DB::PostgreSQLTableStructure::ColumnsInfo> DB::readNamesAndTypesList<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool) @ 0x0000000011746fb2 in /usr/bin/clickhouse
2. DB::PostgreSQLTableStructure DB::fetchPostgreSQLTableStructure<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool, bool) @ 0x000000001174500d in /usr/bin/clickhouse
3. DB::fetchPostgreSQLTableStructure(pqxx::connection&, String const&, String const&, bool) @ 0x000000001174f896 in /usr/bin/clickhouse
4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776590 [ 2146352 ] {} <Fatal> BaseDaemon: 2. DB::PostgreSQLTableStructure DB::fetchPostgreSQLTableStructure<pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>>(pqxx::transaction<(pqxx::isolation_level)0, (pqxx::write_policy)0>&, String const&, String const&, bool, bool, bool) @ 0x000000001174500d in /usr/bin/clickhouse
3. DB::fetchPostgreSQLTableStructure(pqxx::connection&, String const&, String const&, bool) @ 0x000000001174f896 in /usr/bin/clickhouse
4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776597 [ 2146552 ] {c14cf1f7-4b77-47a0-ab52-7cdbf7dd0a2a::all_1_36_2_66} <Error> MutatePlainMergeTreeTask: Code: 190. DB::Exception: Arrays passed to arrayFilter must have equal size: while executing 'FUNCTION if(true :: 2, _CAST(arrayFilter(lambda(tuple(t, u), notEquals(u, 'notSet')), userIdTime, userIds), 'Array(UInt64)') :: 5, userIdTime :: 1) -> if(true, _CAST(arrayFilter(lambda(tuple(t, u), notEquals(u, 'notSet')), userIdTime, userIds), 'Array(UInt64)'), userIdTime) Array(UInt64) : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776616 [ 2146352 ] {} <Fatal> BaseDaemon: 3. DB::fetchPostgreSQLTableStructure(pqxx::connection&, String const&, String const&, bool) @ 0x000000001174f896 in /usr/bin/clickhouse
4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776639 [ 2146352 ] {} <Fatal> BaseDaemon: 4. DB::DatabasePostgreSQL::fetchTable(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011d9f3c6 in /usr/bin/clickhouse
5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776661 [ 2146352 ] {} <Fatal> BaseDaemon: 5. DB::DatabasePostgreSQL::getCreateTableQueryImpl(String const&, std::shared_ptr<DB::Context const>, bool) const @ 0x0000000011da397e in /usr/bin/clickhouse
6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776678 [ 2146352 ] {} <Fatal> BaseDaemon: 6. DB::TablesBlockSource::generate() @ 0x0000000010a6e405 in /usr/bin/clickhouse
7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776698 [ 2146352 ] {} <Fatal> BaseDaemon: 7. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776713 [ 2146352 ] {} <Fatal> BaseDaemon: 8. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776733 [ 2146352 ] {} <Fatal> BaseDaemon: 9. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776745 [ 2146352 ] {} <Fatal> BaseDaemon: 10. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776766 [ 2146352 ] {} <Fatal> BaseDaemon: 11. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776792 [ 2146352 ] {} <Fatal> BaseDaemon: 12. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776807 [ 2146352 ] {} <Fatal> BaseDaemon: 13. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776830 [ 2146352 ] {} <Fatal> BaseDaemon: 14. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776847 [ 2146352 ] {} <Fatal> BaseDaemon: 15. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776861 [ 2146352 ] {} <Fatal> BaseDaemon: 16. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776875 [ 2146352 ] {} <Fatal> BaseDaemon: 17. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
... 
2023.12.06 14:56:25.776887 [ 2146352 ] {} <Fatal> BaseDaemon: 18. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776905 [ 2146352 ] {} <Fatal> BaseDaemon: 19. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776922 [ 2146352 ] {} <Fatal> BaseDaemon: 20. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776933 [ 2146352 ] {} <Fatal> BaseDaemon: 21. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776949 [ 2146352 ] {} <Fatal> BaseDaemon: 22. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
 (version 23.8.8.20 (official build))
2023.12.06 14:56:25.776958 [ 2146352 ] {} <Fatal> BaseDaemon:  (version 23.8.8.20 (official build))
2023.12.06 14:56:25.777189 [ 2150664 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
...
2023.12.06 14:56:25.777246 [ 2150664 ] {} <Fatal> BaseDaemon: (version 23.8.8.20 (official build), build id: 23B01697700DF750C2BF947052EDDB0A21A28F7E, git hash: 5e012a03bf208d0a713c721fd43c228a7dbebf1d) (from thread 2148009) Received signal 6
2023.12.06 14:56:25.777313 [ 2150664 ] {} <Fatal> BaseDaemon: Signal description: Aborted
2023.12.06 14:56:25.777324 [ 2150664 ] {} <Fatal> BaseDaemon:
2023.12.06 14:56:25.777342 [ 2150664 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007f78197f7e87 0x00007f78197f97f1 0x000000000c8fc799 0x0000000018086e63 0x0000000018086e0e 0x000000000715370b 0x0000000010a7328d 0x00000000131a3d35 0x00000000131a3886 0x00000000131bb25a 0x00000000131b2090 0x00000000131b13c2 0x00000000131afc72 0x00000000122e7cac 0x00000000130fb90f 0x00000000131001e9 0x0000000013170f32 0x0000000015b5dc54 0x0000000015b5ee51 0x0000000015c95687 0x0000000015c9395c 0x00007f7819bb16db 0x00007f78198da61f
2023.12.06 14:56:25.777360 [ 2146538 ] {} <Debug> MemoryTracker: Peak memory usage background process to apply mutate/merge in table: 8.71 MiB.
2023.12.06 14:56:25.777374 [ 2150664 ] {} <Fatal> BaseDaemon: ########################################
2023.12.06 14:56:25.777387 [ 2150664 ] {} <Fatal> BaseDaemon: (version 23.8.8.20 (official build), build id: 23B01697700DF750C2BF947052EDDB0A21A28F7E, git hash: 5e012a03bf208d0a713c721fd43c228a7dbebf1d) (from thread 2148009) (query_id: 7f44d1a1-8c4a-422e-9079-2fd17ca60d9a) (query: SELECT database, name, engine, engine_full, create_table_query, data_paths, metadata_path, uuid FROM system.tables WHERE (empty('datago_backup') OR database = 'datago_backup') AND (empty([]) OR has(cast([], 'Array(String)'), name)) ORDER BY metadata_modification_time FORMAT JSON) Received signal Aborted (6)
2023.12.06 14:56:25.777403 [ 2150664 ] {} <Fatal> BaseDaemon:
2023.12.06 14:56:25.777409 [ 2150664 ] {} <Fatal> BaseDaemon: Stack trace: 0x00007f78197f7e87 0x00007f78197f97f1 0x000000000c8fc799 0x0000000018086e63 0x0000000018086e0e 0x000000000715370b 0x0000000010a7328d 0x00000000131a3d35 0x00000000131a3886 0x00000000131bb25a 0x00000000131b2090 0x00000000131b13c2 0x00000000131afc72 0x00000000122e7cac 0x00000000130fb90f 0x00000000131001e9 0x0000000013170f32 0x0000000015b5dc54 0x0000000015b5ee51 0x0000000015c95687 0x0000000015c9395c 0x00007f7819bb16db 0x00007f78198da61f
2023.12.06 14:56:25.777457 [ 2150664 ] {} <Fatal> BaseDaemon: 2. ? @ 0x000000000003ee87 in /lib/x86_64-linux-gnu/libc-2.27.so
2023.12.06 14:56:25.777471 [ 2150664 ] {} <Fatal> BaseDaemon: 3. ? @ 0x00000000000407f1 in /lib/x86_64-linux-gnu/libc-2.27.so
...
2023.12.06 14:56:25.777518 [ 2150664 ] {} <Fatal> BaseDaemon: 4. terminate_handler() @ 0x000000000c8fc799 in /usr/bin/clickhouse
2023.12.06 14:56:25.777568 [ 2150664 ] {} <Fatal> BaseDaemon: 5. std::__terminate(void (*)()) @ 0x0000000018086e63 in /usr/bin/clickhouse
2023.12.06 14:56:25.777582 [ 2150664 ] {} <Fatal> BaseDaemon: 6. std::terminate() @ 0x0000000018086e0e in /usr/bin/clickhouse
2023.12.06 14:56:25.777604 [ 2146552 ] {} <Debug> MemoryTracker: Peak memory usage background process to apply mutate/merge in table: 8.73 MiB.
2023.12.06 14:56:25.777603 [ 2150664 ] {} <Fatal> BaseDaemon: 7. ? @ 0x000000000715370b in /usr/bin/clickhouse
2023.12.06 14:56:25.777629 [ 2150664 ] {} <Fatal> BaseDaemon: 8. DB::TablesBlockSource::generate() @ 0x0000000010a7328d in /usr/bin/clickhouse
2023.12.06 14:56:25.777644 [ 2150664 ] {} <Fatal> BaseDaemon: 9. DB::ISource::tryGenerate() @ 0x00000000131a3d35 in /usr/bin/clickhouse
2023.12.06 14:56:25.777656 [ 2150664 ] {} <Fatal> BaseDaemon: 10. DB::ISource::work() @ 0x00000000131a3886 in /usr/bin/clickhouse
2023.12.06 14:56:25.777669 [ 2150664 ] {} <Fatal> BaseDaemon: 11. DB::ExecutionThreadContext::executeTask() @ 0x00000000131bb25a in /usr/bin/clickhouse
2023.12.06 14:56:25.777684 [ 2150664 ] {} <Fatal> BaseDaemon: 12. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x00000000131b2090 in /usr/bin/clickhouse
2023.12.06 14:56:25.777697 [ 2150664 ] {} <Fatal> BaseDaemon: 13. DB::PipelineExecutor::execute(unsigned long, bool) @ 0x00000000131b13c2 in /usr/bin/clickhouse
2023.12.06 14:56:25.777710 [ 2150664 ] {} <Fatal> BaseDaemon: 14. DB::CompletedPipelineExecutor::execute() @ 0x00000000131afc72 in /usr/bin/clickhouse
2023.12.06 14:56:25.777738 [ 2150664 ] {} <Fatal> BaseDaemon: 15. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr<DB::Context>, std::function<void (DB::QueryResultDetails const&)>, std::optional<DB::FormatSettings> const&) @ 0x00000000122e7cac in /usr/bin/clickhouse
2023.12.06 14:56:25.777754 [ 2150664 ] {} <Fatal> BaseDaemon: 16. DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional<DB::CurrentThread::QueryScope>&) @ 0x00000000130fb90f in /usr/bin/clickhouse
2023.12.06 14:56:25.777767 [ 2150664 ] {} <Fatal> BaseDaemon: 17. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x00000000131001e9 in /usr/bin/clickhouse
2023.12.06 14:56:25.777779 [ 2150664 ] {} <Fatal> BaseDaemon: 18. DB::HTTPServerConnection::run() @ 0x0000000013170f32 in /usr/bin/clickhouse
2023.12.06 14:56:25.777793 [ 2150664 ] {} <Fatal> BaseDaemon: 19. Poco::Net::TCPServerConnection::start() @ 0x0000000015b5dc54 in /usr/bin/clickhouse
2023.12.06 14:56:25.777806 [ 2150664 ] {} <Fatal> BaseDaemon: 20. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b5ee51 in /usr/bin/clickhouse
2023.12.06 14:56:25.777819 [ 2150664 ] {} <Fatal> BaseDaemon: 21. Poco::PooledThread::run() @ 0x0000000015c95687 in /usr/bin/clickhouse
2023.12.06 14:56:25.777831 [ 2150664 ] {} <Fatal> BaseDaemon: 22. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c9395c in /usr/bin/clickhouse
2023.12.06 14:56:25.777852 [ 2150664 ] {} <Fatal> BaseDaemon: 23. start_thread @ 0x00000000000076db in /lib/x86_64-linux-gnu/libpthread-2.27.so
2023.12.06 14:56:25.777864 [ 2150664 ] {} <Fatal> BaseDaemon: 24. ? @ 0x000000000012161f in /lib/x86_64-linux-gnu/libc-2.27.so
...
2023.12.06 14:56:30.274487 [ 2146350 ] {} <Fatal> Application: Child process was terminated by signal 6.

@alexey-milovidov
Copy link
Member

@myrrc

Bugfix validate check — Changed tests don't reproduce the bug

@alexey-milovidov alexey-milovidov marked this pull request as draft December 7, 2023 19:13
@myrrc
Copy link
Contributor Author

myrrc commented Dec 7, 2023

@myrrc

Bugfix validate check — Changed tests don't reproduce the bug

Unfortunately, we haven't been able to reproduce the bug every time, it's appearing every now and then. I've attached the stack trace.

I will add the test but pretty sure it will be marked as flaky by CI.

@alexey-milovidov alexey-milovidov marked this pull request as ready for review December 7, 2023 22:41
@alexey-milovidov
Copy link
Member

Changed from "bug fix" to "improvement". Now it will be acceptable without a test.

@alexey-milovidov alexey-milovidov merged commit f5f2820 into ClickHouse:master Dec 7, 2023
318 of 330 checks passed
@vdimir vdimir added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Dec 8, 2023
robot-ch-test-poll1 added a commit that referenced this pull request Dec 8, 2023
…b259fc08eb0a452d4c71058c6459a

Cherry pick #57618 to 23.3: Fix sigabrt while getting PostgreSQL table structure
robot-ch-test-poll1 added a commit that referenced this pull request Dec 8, 2023
…b259fc08eb0a452d4c71058c6459a

Cherry pick #57618 to 23.8: Fix sigabrt while getting PostgreSQL table structure
robot-ch-test-poll1 added a commit that referenced this pull request Dec 8, 2023
…b259fc08eb0a452d4c71058c6459a

Cherry pick #57618 to 23.9: Fix sigabrt while getting PostgreSQL table structure
robot-ch-test-poll1 added a commit that referenced this pull request Dec 8, 2023
…3b259fc08eb0a452d4c71058c6459a

Cherry pick #57618 to 23.10: Fix sigabrt while getting PostgreSQL table structure
robot-ch-test-poll1 added a commit that referenced this pull request Dec 8, 2023
…3b259fc08eb0a452d4c71058c6459a

Cherry pick #57618 to 23.11: Fix sigabrt while getting PostgreSQL table structure
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Dec 8, 2023
robot-ch-test-poll4 added a commit that referenced this pull request Dec 8, 2023
Backport #57618 to 23.10: Fix sigabrt while getting PostgreSQL table structure
@jsc0218
Copy link
Contributor

jsc0218 commented Dec 8, 2023

I doubt whether we should set it to 0, due to some limitation in postgres's array_ndims itself, please see cases detailed in issue#57436

@myrrc
Copy link
Contributor Author

myrrc commented Dec 8, 2023

Related: #57436

@jsc0218
Copy link
Contributor

jsc0218 commented Dec 8, 2023

Related: #57436

yes, so I think it is better to throw an exception instead of 0, due to the cases like first row null or empty while remaining rows are not.

@myrrc
Copy link
Contributor Author

myrrc commented Dec 8, 2023

Well, at least we should catch that exception instead of sigabrt'ing.
However, in this particular case we've observed (table structure that we get is used for creating a backup) this fix so far works ok

@jsc0218
Copy link
Contributor

jsc0218 commented Dec 9, 2023

Well, at least we should catch that exception instead of sigabrt'ing. However, in this particular case we've observed (table structure that we get is used for creating a backup) this fix so far works ok

agree, let's take you approach as temporary, then approach in #57436 as a permanent.

vdimir added a commit that referenced this pull request Dec 11, 2023
Backport #57618 to 23.3: Fix sigabrt while getting PostgreSQL table structure
vdimir added a commit that referenced this pull request Dec 11, 2023
Backport #57618 to 23.8: Fix sigabrt while getting PostgreSQL table structure
vdimir added a commit that referenced this pull request Dec 11, 2023
Backport #57618 to 23.9: Fix sigabrt while getting PostgreSQL table structure
vdimir added a commit that referenced this pull request Dec 11, 2023
Backport #57618 to 23.11: Fix sigabrt while getting PostgreSQL table structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants