2025.04.06 19:01:31.361753 [ 347 ] {} Context: Server was built with undefined behavior sanitizer. It will work slowly. 2025.04.06 19:01:31.796945 [ 347 ] {} KeeperLogStore: No logs exists in /var/lib/clickhouse/coordination/logs. It's Ok if it's the first run of clickhouse-keeper. 2025.04.06 19:01:31.797280 [ 347 ] {} KeeperLogStore: Removing all changelogs 2025.04.06 19:01:31.797547 [ 347 ] {} KeeperServer: Got 1000000000000000 value for setting 'reserved_log_items' which is bigger than int32_t max value, lowering value to 2147483647. 2025.04.06 19:01:31.799219 [ 347 ] {} RaftInstance: invalid election timeout lower bound detected, adjusted to 0 2025.04.06 19:01:31.799228 [ 347 ] {} RaftInstance: invalid election timeout upper bound detected, adjusted to 0 2025.04.06 19:01:31.849579 [ 932 ] {} RaftInstance: Election timeout, initiate leader election 2025.04.06 19:01:31.869143 [ 347 ] {} Access(local_directory): File /var/lib/clickhouse/access/users.list doesn't exist 2025.04.06 19:01:31.869178 [ 347 ] {} Access(local_directory): Recovering lists in directory /var/lib/clickhouse/access/ 2025.04.06 19:01:31.874849 [ 347 ] {} Context: Delay accounting is not enabled, OSIOWaitMicroseconds will not be gathered. You can enable it using `echo 1 > /proc/sys/kernel/task_delayacct` or by using sysctl. 2025.04.06 19:01:31.875287 [ 347 ] {} Context: The setting 'allow_remote_fs_zero_copy_replication' is enabled for MergeTree tables. But the feature of 'zero-copy replication' is under development and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. 2025.04.06 19:01:33.122906 [ 351 ] {1816c958-dc71-489e-b9eb-161616cd173c} InterpreterCreateQuery: ATTACH TABLE query with full table definition is not recommended: use either ATTACH TABLE hits_v1; to attach existing table or CREATE TABLE hits_v1 ; to create new table or ATTACH TABLE hits_v1 FROM '/path/to/data/'
; to create new table and attach data. 2025.04.06 19:01:43.411348 [ 351 ] {f1313068-99ec-4f86-a430-5f944696ea53} InterpreterCreateQuery: ATTACH TABLE query with full table definition is not recommended: use either ATTACH TABLE visits_v1; to attach existing table or CREATE TABLE visits_v1
; to create new table or ATTACH TABLE visits_v1 FROM '/path/to/data/'
; to create new table and attach data. 2025.04.06 19:03:15.386470 [ 1760 ] {46df019a-2f0b-4917-bfc8-dd05e61c5038} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing Remote. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53074) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.388918 [ 1760 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing Remote. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.412528 [ 351 ] {} TCPHandler: TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket (peer: [::ffff:127.0.0.1]:41188, local: [::ffff:127.0.0.3]:9000). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/ReadBufferFromPocoSocket.cpp:83: DB::ReadBufferFromPocoSocketBase::socketReceiveBytesImpl(char*, unsigned long) @ 0x0000000025d576f8 5. ./build_docker/./src/IO/ReadBufferFromPocoSocket.cpp:107: DB::ReadBufferFromPocoSocketBase::nextImpl() @ 0x0000000025d58355 6. DB::ReadBuffer::next() @ 0x00000000190b7c92 7. ./src/IO/ReadBuffer.h:103: DB::TCPHandler::runImpl() @ 0x00000000351f4dbc 8. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 10. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 12. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 13. ? @ 0x00007fa8aab34ac3 14. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.412531 [ 1980 ] {171c98ab-5b1b-4e55-b0d1-5ddc0d87d589} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52622). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.412607 [ 351 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket (peer: [::ffff:127.0.0.1]:41188, local: [::ffff:127.0.0.3]:9000). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/ReadBufferFromPocoSocket.cpp:83: DB::ReadBufferFromPocoSocketBase::socketReceiveBytesImpl(char*, unsigned long) @ 0x0000000025d576f8 5. ./build_docker/./src/IO/ReadBufferFromPocoSocket.cpp:107: DB::ReadBufferFromPocoSocketBase::nextImpl() @ 0x0000000025d58355 6. DB::ReadBuffer::next() @ 0x00000000190b7c92 7. ./src/IO/ReadBuffer.h:103: DB::TCPHandler::runImpl() @ 0x00000000351f4dbc 8. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 10. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 12. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 13. ? @ 0x00007fa8aab34ac3 14. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.413252 [ 1980 ] {171c98ab-5b1b-4e55-b0d1-5ddc0d87d589} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52622). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52622) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.413777 [ 1980 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52622). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.691536 [ 1760 ] {53e1b874-7ae9-4d5b-a01d-fef38b7802f3} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing Remote. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53084) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.692385 [ 352 ] {435b1ecf-9302-46a7-9a70-61aefc8c88bb} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44820). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.692524 [ 1980 ] {dd71f289-a419-4975-8dfa-ce22330747b6} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41194). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.692942 [ 1980 ] {dd71f289-a419-4975-8dfa-ce22330747b6} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41194). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41194) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.693322 [ 352 ] {435b1ecf-9302-46a7-9a70-61aefc8c88bb} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44820). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:44820) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.693610 [ 351 ] {c4431c10-eaee-4e72-83c2-b6eedcdadadb} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52628). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.693723 [ 1980 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41194). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.693829 [ 1760 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing Remote. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.694014 [ 352 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44820). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.694136 [ 351 ] {c4431c10-eaee-4e72-83c2-b6eedcdadadb} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52628). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52628) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.695125 [ 351 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52628). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.992119 [ 1744 ] {91d0e6da-3516-4696-afd9-c2bd9cfc6b72} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing Remote. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53098) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4,5}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.992854 [ 351 ] {80abc187-4ff9-4650-8438-e800eed4c5df} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35108). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.993247 [ 352 ] {d7b48d09-7511-4022-8b9e-15f1051d1393} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44826). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.993348 [ 1760 ] {08b7357d-b51a-41ff-bf24-ddfedd52dc34} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52640). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:15.993422 [ 351 ] {80abc187-4ff9-4650-8438-e800eed4c5df} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35108). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:35108) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.993749 [ 352 ] {d7b48d09-7511-4022-8b9e-15f1051d1393} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44826). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:44826) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.993846 [ 1760 ] {08b7357d-b51a-41ff-bf24-ddfedd52dc34} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52640). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52640) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.994306 [ 351 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35108). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.994605 [ 1744 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing Remote. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.994831 [ 352 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44826). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:15.994840 [ 1760 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52640). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.025539 [ 1980 ] {8c8a74dc-c5f8-4db7-9eb5-7af5b89e0493} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41198). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.026053 [ 1980 ] {8c8a74dc-c5f8-4db7-9eb5-7af5b89e0493} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41198). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41198) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.027028 [ 1980 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41198). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.322478 [ 1800 ] {ceed1d97-7e71-48f6-b762-01b617b904c4} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 35.52 million: While executing Remote. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53108) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4,5,6}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.323233 [ 1760 ] {63fee217-642a-4eec-8cb9-c13260034988} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35116). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.323514 [ 1797 ] {b3bfd481-b905-4a07-9232-274d6a9a3964} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44838). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.323663 [ 1744 ] {cfe652f4-9db7-415e-95e9-0cc5c3a54fb4} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41214). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.323789 [ 1760 ] {63fee217-642a-4eec-8cb9-c13260034988} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35116). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:35116) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.323834 [ 1796 ] {85490dde-a46a-4fa2-ab05-7e358f55dfa4} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52654). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.324002 [ 1797 ] {b3bfd481-b905-4a07-9232-274d6a9a3964} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44838). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:44838) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.324366 [ 1796 ] {85490dde-a46a-4fa2-ab05-7e358f55dfa4} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52654). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52654) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.324768 [ 1760 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35116). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.324952 [ 1797 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44838). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.325044 [ 1744 ] {cfe652f4-9db7-415e-95e9-0cc5c3a54fb4} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41214). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41214) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.325379 [ 1796 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52654). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.325420 [ 1800 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 35.52 million: While executing Remote. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.326122 [ 1744 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41214). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.671785 [ 352 ] {094fca65-db80-4fd7-88e5-3a00702aaf30} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 35.52 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53116) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4,5,6,7}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.672430 [ 1760 ] {17d330b3-55d3-45dc-a0b5-49f6273257ce} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42308). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.672580 [ 1796 ] {65979b21-d3dc-48c8-8910-15bcd9db3400} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38396). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.672934 [ 1760 ] {17d330b3-55d3-45dc-a0b5-49f6273257ce} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42308). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:42308) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.673212 [ 1796 ] {65979b21-d3dc-48c8-8910-15bcd9db3400} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38396). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:38396) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.673229 [ 1767 ] {e64c11b2-8fd9-4755-ba1c-48d816a24d53} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52662). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.673310 [ 1797 ] {080f7b76-c6e9-40fb-a6a0-54d7ce206360} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44846). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.673820 [ 1760 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42308). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.674074 [ 1800 ] {bb470a36-2399-47e8-8d33-9639ad93a411} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41218). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.674498 [ 1767 ] {e64c11b2-8fd9-4755-ba1c-48d816a24d53} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52662). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52662) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.674585 [ 1797 ] {080f7b76-c6e9-40fb-a6a0-54d7ce206360} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44846). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:44846) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.674637 [ 352 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 35.52 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.675728 [ 1797 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44846). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.675750 [ 1767 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52662). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.675943 [ 1796 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38396). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.678862 [ 1800 ] {bb470a36-2399-47e8-8d33-9639ad93a411} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41218). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41218) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.679933 [ 1800 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41218). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.735538 [ 1744 ] {f7ffa42f-c28c-4140-b64c-01ba474d84a9} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35118). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:16.736111 [ 1744 ] {f7ffa42f-c28c-4140-b64c-01ba474d84a9} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35118). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:35118) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:16.737744 [ 1744 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35118). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.013167 [ 1798 ] {3f085d14-0463-4e3b-bcc9-4f95ec34a0c9} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53124) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4,5,6,7,8}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.013880 [ 1796 ] {4a2c685b-a47a-4569-8709-9e174d82dc24} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42312). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.014523 [ 1796 ] {4a2c685b-a47a-4569-8709-9e174d82dc24} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42312). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:42312) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.014534 [ 1800 ] {d9151bbb-ddaa-4044-b976-cc169abda193} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41234). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.014652 [ 352 ] {5ce7d754-912c-49b2-ac97-ab04ccc54f4f} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44852). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.014979 [ 1767 ] {21dd4b47-c278-49ec-b18a-baa0d13e44fd} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52672). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.015066 [ 1800 ] {d9151bbb-ddaa-4044-b976-cc169abda193} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41234). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41234) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.015635 [ 1796 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42312). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.015854 [ 1767 ] {21dd4b47-c278-49ec-b18a-baa0d13e44fd} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52672). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52672) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.015900 [ 1798 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.016260 [ 1800 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41234). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.017055 [ 1767 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52672). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.017431 [ 352 ] {5ce7d754-912c-49b2-ac97-ab04ccc54f4f} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44852). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:44852) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.018694 [ 352 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.4]:9000 -> [::ffff:127.0.0.1]:44852). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.038270 [ 1760 ] {1c9da78c-62bd-4115-a331-12db14ef8101} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47262). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.038815 [ 1760 ] {1c9da78c-62bd-4115-a331-12db14ef8101} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47262). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:47262) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.039979 [ 1760 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47262). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.042172 [ 1797 ] {eae90427-a09a-4c68-8dc9-ee3f17aac3c4} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35128). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.042664 [ 1797 ] {eae90427-a09a-4c68-8dc9-ee3f17aac3c4} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35128). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:35128) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.043797 [ 1797 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35128). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.403718 [ 351 ] {5071c797-e425-4dc7-8c64-cac68afe02ef} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53140) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4,5,6,7,8,9}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.404563 [ 1760 ] {0704fb19-90d2-4f29-a2aa-0e5b0c926169} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47278). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.404667 [ 2387 ] {e32dc473-3c58-416f-ab23-408411cb0bbb} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.9]:9000 -> [::ffff:127.0.0.1]:42786). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.404684 [ 1800 ] {bb95b68c-5db3-4ad5-99a8-afd206b6d50f} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38412). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.405019 [ 1768 ] {014bac34-6232-4a4d-a725-519176402f41} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35132). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.405188 [ 1760 ] {0704fb19-90d2-4f29-a2aa-0e5b0c926169} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47278). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:47278) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.405360 [ 1796 ] {24fc7439-8dc9-4e07-83d3-300d18a35f7e} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52688). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.405387 [ 1800 ] {bb95b68c-5db3-4ad5-99a8-afd206b6d50f} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38412). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:38412) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.405434 [ 2387 ] {e32dc473-3c58-416f-ab23-408411cb0bbb} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.9]:9000 -> [::ffff:127.0.0.1]:42786). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:42786) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.405458 [ 1768 ] {014bac34-6232-4a4d-a725-519176402f41} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35132). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:35132) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.405889 [ 1796 ] {24fc7439-8dc9-4e07-83d3-300d18a35f7e} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52688). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52688) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.406235 [ 351 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.406318 [ 1760 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47278). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.406432 [ 1768 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35132). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.406560 [ 1800 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38412). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.406627 [ 2387 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.9]:9000 -> [::ffff:127.0.0.1]:42786). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.406852 [ 1796 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52688). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.425740 [ 352 ] {0284a62e-28d1-41f4-9090-cb9aed139cd5} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41240). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.426241 [ 352 ] {0284a62e-28d1-41f4-9090-cb9aed139cd5} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41240). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41240) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.427342 [ 352 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41240). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.764199 [ 2390 ] {405d8cb8-e94e-4441-af11-47286f3fd1ca} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:53146) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT SearchPhrase AS k, count() AS c FROM remote('127.0.0.{1,2,3,4,5,6,7,8,9,10}', test.hits) GROUP BY k ORDER BY c DESC LIMIT 10), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.765419 [ 351 ] {d9b31fab-bd86-444f-b0fb-8a135f2abdd5} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35144). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.765681 [ 1980 ] {005022a7-282e-49b0-9b5a-5ece97c55e6e} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41242). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.766089 [ 351 ] {d9b31fab-bd86-444f-b0fb-8a135f2abdd5} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35144). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:35144) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.766176 [ 1980 ] {005022a7-282e-49b0-9b5a-5ece97c55e6e} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41242). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:41242) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.766967 [ 1980 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.3]:9000 -> [::ffff:127.0.0.1]:41242). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.766980 [ 1768 ] {5dbc6912-12a8-4b61-be91-d310b3da5372} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52696). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.767136 [ 2390 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00 million, current rows: 26.64 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.767342 [ 351 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.5]:9000 -> [::ffff:127.0.0.1]:35144). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.768962 [ 1798 ] {275e8213-4466-43c4-9dec-255235f745af} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47284). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.769374 [ 1768 ] {5dbc6912-12a8-4b61-be91-d310b3da5372} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52696). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:52696) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.770120 [ 1768 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.2]:9000 -> [::ffff:127.0.0.1]:52696). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.773156 [ 1798 ] {275e8213-4466-43c4-9dec-255235f745af} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47284). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:47284) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.774160 [ 1798 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.8]:9000 -> [::ffff:127.0.0.1]:47284). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.775853 [ 2387 ] {7571aafb-58c8-4b26-b078-d944a7304206} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38426). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.776342 [ 2387 ] {7571aafb-58c8-4b26-b078-d944a7304206} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38426). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:38426) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.777323 [ 2387 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.6]:9000 -> [::ffff:127.0.0.1]:38426). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.788027 [ 1767 ] {a2aa73bf-0a8f-4df6-ae0b-57f26db9e180} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.9]:9000 -> [::ffff:127.0.0.1]:42798). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.788553 [ 1767 ] {a2aa73bf-0a8f-4df6-ae0b-57f26db9e180} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.9]:9000 -> [::ffff:127.0.0.1]:42798). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:42798) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.789027 [ 1800 ] {98814b3e-43fd-4580-85e2-81b53cfb784c} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.10]:9000 -> [::ffff:127.0.0.1]:53644). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.789549 [ 1800 ] {98814b3e-43fd-4580-85e2-81b53cfb784c} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.10]:9000 -> [::ffff:127.0.0.1]:53644). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:53644) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.789676 [ 1767 ] {} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::ffff:127.0.0.9]:9000 -> [::ffff:127.0.0.1]:42798). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:160: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c031 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.790617 [ 1800 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.10]:9000 -> [::ffff:127.0.0.1]:53644). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.792749 [ 352 ] {1b068e9e-4e0c-4245-bca5-e97687ded658} void DB::TCPHandler::sendData(QueryState &, const Block &): Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42324). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 (version 24.12.2.20229.altinityantalya (altinity build)) 2025.04.06 19:03:17.793267 [ 352 ] {1b068e9e-4e0c-4245-bca5-e97687ded658} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42324). (NETWORK_ERROR) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::ffff:127.0.0.1]:42324) (comment: 00090_thread_pool_deadlock.sh) (in query: SELECT `__table1`.`SearchPhrase` AS `k`, count() AS `c` FROM `test`.`hits` AS `__table1` GROUP BY `__table1`.`SearchPhrase` ORDER BY count() DESC LIMIT _CAST(10, 'UInt64')), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:17.794326 [ 352 ] {} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::ffff:127.0.0.7]:9000 -> [::ffff:127.0.0.1]:42324). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. ./src/Common/Exception.h:105: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000025d59107 4. ./build_docker/./src/IO/WriteBufferFromPocoSocket.cpp:171: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000025d5c3d1 5. DB::WriteBuffer::next() @ 0x0000000018efe6a3 6. ./build_docker/./src/Server/TCPHandler.cpp:2464: DB::TCPHandler::sendData(DB::QueryState&, DB::Block const&) @ 0x0000000035218803 7. ./build_docker/./src/Server/TCPHandler.cpp:1260: DB::TCPHandler::processOrdinaryQuery(DB::QueryState&) @ 0x0000000035208d72 8. ./build_docker/./src/Server/TCPHandler.cpp:670: DB::TCPHandler::runImpl() @ 0x00000000351f5c79 9. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 11. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 13. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:29.207774 [ 1798 ] {2a98a7ed-17ae-46b5-a690-dae2c9d6aa20} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 572.47 MiB: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_BYTES) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:40300) (comment: 00091_prewhere_two_conditions.sql) (in query: SELECT uniq(URL) FROM test.hits WHERE toTimeZone(EventTime, 'Asia/Dubai') >= '2014-03-20 00:00:00' AND toTimeZone(EventTime, 'Asia/Dubai') < '2014-03-21 00:00:00';), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000003085d3af 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:43: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cd8e 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x00000000353420e5 10. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:127: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000035341d2a 11. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003535be1b 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:29.208241 [ 1798 ] {} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 572.47 MiB: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000003085d3af 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:43: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cd8e 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x00000000353420e5 10. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:127: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000035341d2a 11. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003535be1b 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:29.832766 [ 1798 ] {48b0fa79-cec8-487d-8957-924c5b48560c} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 572.47 MiB: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_BYTES) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:40300) (comment: 00091_prewhere_two_conditions.sql) (in query: SELECT uniq(URL) FROM test.hits WHERE toTimeZone(EventTime, 'Asia/Dubai') >= '2014-03-20 00:00:00' AND URL != '' AND toTimeZone(EventTime, 'Asia/Dubai') < '2014-03-21 00:00:00';), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000003085d3af 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:43: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cd8e 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x00000000353420e5 10. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:127: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000035341d2a 11. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003535be1b 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:29.833251 [ 1798 ] {} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 572.47 MiB: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000003085d3af 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:43: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cd8e 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x00000000353420e5 10. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:127: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000035341d2a 11. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003535be1b 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:30.425831 [ 1798 ] {2f4f1a4c-4daa-4672-bf75-35c956a6d349} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 572.47 MiB: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_BYTES) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:40300) (comment: 00091_prewhere_two_conditions.sql) (in query: SELECT uniq(URL) FROM test.hits PREWHERE toTimeZone(EventTime, 'Asia/Dubai') >= '2014-03-20 00:00:00' AND URL != '' AND toTimeZone(EventTime, 'Asia/Dubai') < '2014-03-21 00:00:00';), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000003085d3af 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:43: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cd8e 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x00000000353420e5 10. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:127: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000035341d2a 11. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003535be1b 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:03:30.426313 [ 1798 ] {} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 572.20 MiB, current bytes: 572.47 MiB: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000003085d3af 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:43: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cd8e 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x00000000353420e5 10. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:127: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000035341d2a 11. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:83: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000003535be1b 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:04:50.162031 [ 1796 ] {03e25574-6341-4792-b7c1-06f5f6b904ff} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:48678) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT 1 = (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:315: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x0000000035c91110 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:2082: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035cb3fd5 8. ./build_docker/./src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c420fc 9. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c7a659 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:261: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000032231473 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:228: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000032231066 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:604: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310a52d6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3854: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109b29e 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3975: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003109999f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2879: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310bf53a 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3817: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109ada4 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3975: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003109999f 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4299: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310e1a2c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5563: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003109017a 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:172: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x000000003108de8b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:18: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x000000003108d511 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:184: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000031c91479 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:149: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003222f9f0 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:167: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000003222d3d7 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000003223216e 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:279: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000032231c25 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x000000003217df18 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1305: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000003272c5be 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1535: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000003272728e 30. ./build_docker/./src/Server/TCPHandler.cpp:656: DB::TCPHandler::runImpl() @ 0x00000000351f5a3c 31. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 2025.04.06 19:04:50.162468 [ 1796 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:315: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x0000000035c91110 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:2082: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035cb3fd5 8. ./build_docker/./src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c420fc 9. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c7a659 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:261: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000032231473 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:228: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000032231066 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:604: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310a52d6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3854: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109b29e 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3975: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003109999f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2879: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310bf53a 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3817: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109ada4 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3975: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003109999f 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4299: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310e1a2c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5563: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000003109017a 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:172: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x000000003108de8b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:18: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x000000003108d511 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:184: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000031c91479 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:149: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003222f9f0 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:167: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000003222d3d7 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000003223216e 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:279: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000032231c25 27. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x000000003217df18 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1305: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000003272c5be 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1535: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000003272728e 30. ./build_docker/./src/Server/TCPHandler.cpp:656: DB::TCPHandler::runImpl() @ 0x00000000351f5a3c 31. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 2025.04.06 19:04:50.186251 [ 1796 ] {101dde7a-25bc-4a48-9ef3-9b3adea2076d} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:48678) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT 1 IN (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:315: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x0000000035c91110 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:2082: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035cb3fd5 8. ./build_docker/./src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c420fc 9. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c7a659 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:261: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000032231473 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:228: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000032231066 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1368: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000003272d383 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1535: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000003272728e 14. ./build_docker/./src/Server/TCPHandler.cpp:656: DB::TCPHandler::runImpl() @ 0x00000000351f5a3c 15. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 17. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 19. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 20. ? @ 0x00007fa8aab34ac3 21. ? @ 0x00007fa8aabc6850 2025.04.06 19:04:50.186480 [ 1796 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:315: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x0000000035c91110 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:2082: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035cb3fd5 8. ./build_docker/./src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c420fc 9. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c7a659 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:261: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000032231473 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:228: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000032231066 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1368: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000003272d383 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1535: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000003272728e 14. ./build_docker/./src/Server/TCPHandler.cpp:656: DB::TCPHandler::runImpl() @ 0x00000000351f5a3c 15. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 17. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000038cf1157 19. ./base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000038ceca4e 20. ? @ 0x00007fa8aab34ac3 21. ? @ 0x00007fa8aabc6850 2025.04.06 19:04:50.272401 [ 1796 ] {f1e11b51-7f7d-445c-aca5-a24485c03362} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 15.00 million, current rows: 17.79 million: While executing MergeTreeSelect(pool: ReadPoolInOrder, algorithm: InOrder). (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:48678) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT count() IN (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID)) FROM test.hits WHERE NOT ignore(AdvEngineID);), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:04:50.273898 [ 1796 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 15.00 million, current rows: 17.79 million: While executing MergeTreeSelect(pool: ReadPoolInOrder, algorithm: InOrder). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:04:50.311155 [ 1796 ] {a27ca09c-9761-4672-8304-952064301e57} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:48678) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT count() FROM test.hits WHERE CounterID > (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:315: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x0000000035c91110 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:2082: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035cb3fd5 8. ./build_docker/./src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c420fc 9. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c7a659 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:261: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000032231473 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:228: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000032231066 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:604: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310a52d6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3854: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109b29e 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3975: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003109999f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2879: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310bf53a 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3817: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109ada4 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5588: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000310903fb 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:172: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x000000003108de8b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:18: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x000000003108d511 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:184: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000031c91479 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:149: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003222f9f0 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:167: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000003222d3d7 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000003223216e 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:279: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000032231c25 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x000000003217df18 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1305: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000003272c5be 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1535: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000003272728e 28. ./build_docker/./src/Server/TCPHandler.cpp:656: DB::TCPHandler::runImpl() @ 0x00000000351f5a3c 29. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 31. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 2025.04.06 19:04:50.311518 [ 1796 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00 million, current rows: 8.88 million. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:315: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x0000000035c91110 7. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:2082: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035cb3fd5 8. ./build_docker/./src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c420fc 9. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x0000000035c7a659 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:261: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000032231473 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:228: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000032231066 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:604: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310a52d6 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3854: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109b29e 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3975: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000003109999f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2879: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000310bf53a 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3817: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000003109ada4 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5588: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000310903fb 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:172: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x000000003108de8b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:18: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x000000003108d511 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:184: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000031c91479 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:149: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000003222f9f0 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:167: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000003222d3d7 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000003223216e 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:279: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000032231c25 25. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x000000003217df18 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1305: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000003272c5be 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1535: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000003272728e 28. ./build_docker/./src/Server/TCPHandler.cpp:656: DB::TCPHandler::runImpl() @ 0x00000000351f5a3c 29. ./build_docker/./src/Server/TCPHandler.cpp:2603: DB::TCPHandler::run() @ 0x0000000035220bae 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000038d8db02 31. ./build_docker/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000038d8e7d2 2025.04.06 19:04:50.406537 [ 1796 ] {b0399fd6-6c63-4370-bf32-9b342145477d} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 10.00 million, current rows: 13.13 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS) (version 24.12.2.20229.altinityantalya (altinity build)) (from [::1]:48678) (comment: 00175_counting_resources_in_subqueries.sql) (in query: SELECT count() FROM test.hits WHERE CounterID < (SELECT count() FROM test.hits WHERE NOT ignore(AdvEngineID));), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:04:50.407187 [ 1796 ] {} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 10.00 million, current rows: 13.13 million: While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. std::exception::exception[abi:v15007]() @ 0x0000000019047bf4 1. ./build_docker/./base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000038c5a480 2. ./build_docker/./src/Common/Exception.cpp:105: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000025b5252b 3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000018ee58b6 4. ./src/Common/Exception.h:123: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000003085d30f 5. ./build_docker/./src/QueryPipeline/SizeLimits.cpp:32: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000003085cca9 6. ./build_docker/./src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000003081a7bb 7. ./build_docker/./src/Processors/Executors/ExecutionThreadContext.cpp:64: DB::ExecutionThreadContext::executeTask() @ 0x0000000035356e4f 8. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:290: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000035342f7c 9. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:256: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000035344649 10. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c7634f 11. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7e334 12. ./contrib/llvm-project/libcxx/include/__functional/function.h:848: ? @ 0x0000000025c73b81 13. ./contrib/llvm-project/libcxx/include/__functional/invoke.h:359: ? @ 0x0000000025c7ab2a 14. ? @ 0x00007fa8aab34ac3 15. ? @ 0x00007fa8aabc6850 2025.04.06 19:06:46.284710 [ 347 ] {} Application: Closed all listening sockets. Waiting for 4 outstanding connections.