v.19.14Improvement

Fixed Possible Deadlock of Distributed Queries When One of Shards Is Localhost But the Query Is Sent via Network Connection

Fixed possible deadlock of distributed queries when one of shards is localhost but the query is sent via network connection. #6759 (alexey-milovidov)
Fixed possible deadlock in distributed queries involving localhost shard connections.

Why it matters

This fix addresses a deadlock scenario that could occur when executing distributed queries where one of the involved shards is localhost but accessed via a network connection. The update ensures more reliable and stable distributed query execution without hanging due to inter-shard communication locks.

How to use it

Users benefit from this fix automatically after upgrading ClickHouse to the version including this patch. No additional configuration or settings changes are required to avoid the deadlock issue in distributed queries involving localhost shards.