v.24.6Improvement

Avoid Deadlock in MergeTree Index Analysis During Thread Scheduling

Avoid possible deadlock during MergeTree index analysis when scheduling threads in a saturated service. #59427 (Sean Haynes).
Avoid possible deadlock during MergeTree index analysis when scheduling threads in a saturated service.

Why it matters

This feature addresses a concurrency issue where deadlocks could occur during the analysis of MergeTree indexes in highly loaded ClickHouse services. It ensures stable and reliable index analysis by preventing thread scheduling conflicts, thereby improving system robustness under heavy load.

How to use it

The deadlock avoidance is implemented internally and requires no additional user configuration. Users benefit from this improvement automatically after upgrading to the version containing this fix.