v.21.1Improvements

Improve timeout checks for max_execution_time in ClickHouse

Improve the max_execution_time checks. Fixed some cases when timeout checks do not happen and query could run too long. #31636 (Raúl Marín).
Improved the max_execution_time checks to ensure query timeout enforcement is consistent and effective.

Why it matters

This feature addresses issues where timeout checks were occasionally bypassed, allowing queries to run longer than the configured max_execution_time. It guarantees that query execution times are properly limited to improve system stability and resource management.

How to use it

Set the max_execution_time setting for your queries or sessions as usual. The improved checks will automatically enforce the timeout more reliably without additional configuration.