Skip to content

Crash in swarm query on shutdown #1507

@ianton-ru

Description

@ianton-ru

Describe the bug
Crash in swarm query on shutdown

https://altinity.slack.com/archives/C07NZ441PK9/p1772653640887299

query:
SELECT toStartOfInterval(eventTime, INTERVAL 2569000 MILLISECOND) as time, name, deviceID, busID, messageID, valueType, stringValue, fmi, argMax(floatValue, eventTime) as latestFloatValue, argMax(intValue, eventTime) as latestIntValue, count() as count FROM mahindra.`sibros.metrics` WHERE companyID = 'b6493da5-5216-49df-aaaf-706e40e57e6e' AND (deviceID IN ('faf3491f-f241-4a49-b2ca-2d2928ab4132') AND name IN ('STS_IGN_ESC', 'BATT_VOLT', 'STS_ENG', 'FR_SEAT_HEIGHT_MOTOR_TRAVEL', 'FR_SEAT_TRACK_MOTOR_TRAVEL') AND messageID IN (271, 540, 292, 867)) AND (eventTime >= '2026-02-25 18:29:21.783' AND eventTime <= '2026-03-04 18:29:21.783') GROUP BY time, name, deviceID, busID, messageID, valueType, stringValue, fmi ORDER BY time DESC LIMIT 10000 SETTINGS  max_execution_time=100, object_storage_cluster='mahindra'
trace full:
2. ? @ 0x0000000000083411
3. std::mutex::lock() @ 0x000000001bfeb0b8
4. std::__shared_ptr_emplace<PoolBase<DB::Connection>::PoolEntryHelper, std::allocator<PoolBase<DB::Connection>::PoolEntryHelper>>::__on_zero_shared() @ 0x0000000016878760
5. DB::MultiplexedConnections::disconnect() @ 0x00000000168a26b0
6. DB::RemoteQueryExecutor::~RemoteQueryExecutor() @ 0x00000000144222bc
7. DB::RemoteSource::~RemoteSource() @ 0x0000000016dcda84
8. std::__shared_ptr_emplace<std::vector<std::shared_ptr<DB::IProcessor>, std::allocator<std::shared_ptr<DB::IProcessor>>>, std::allocator<std::vector<std::shared_ptr<DB::IProcessor>, std::allocator<std::shared_ptr<DB::IProcessor>>>>>::__on_zero_shared() @ 0x0000000014401fbc
9. DB::QueryPipeline::~QueryPipeline() @ 0x0000000014405fd0
10. DB::QueryPipeline::reset() @ 0x000000001440b638
11. DB::TCPHandler::runImpl() @ 0x00000000169a7d7c
12. DB::TCPHandler::run() @ 0x00000000169c22a8
13. Poco::Net::TCPServerConnection::start() @ 0x000000001b4ca418
14. Poco::Net::TCPServerDispatcher::run() @ 0x000000001b4ca9b4
15. Poco::PooledThread::run() @ 0x000000001b49031c
16. Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001b48e690
17. ? @ 0x0000000000080398
18. ? @ 0x00000000000e9e9c

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions