v.21.9Improvement

Avoid ClickHouse Benchmark Hang on Connection Failures

Avoid hanging clickhouse-benchmark if connection fails (i.e. on EMFILE). #26656 (Azat Khuzhin).
Prevent clickhouse-benchmark from hanging when connection failures occur, such as when reaching the EMFILE error (too many open files).

Why it matters

This feature addresses the issue where clickhouse-benchmark could hang indefinitely if it encounters connection failures, improving robustness and reliability during benchmarking by handling errors like EMFILE gracefully.

How to use it

The fix is integrated into the clickhouse-benchmark utility. Users do not need to change their workflow; simply update to the ClickHouse version that includes this patch to benefit from the improved error handling.