v.20.5Improvement

Fix Exception from Replicated Queue During Server Shutdown

Get rid of exception from replicated queue during server shutdown. Fixes #10819. #10841 (alesapin).
Eliminates exceptions thrown by the replicated queue during ClickHouse server shutdown.

Why it matters

This feature addresses the issue where the replicated queue generated exceptions when the server was shutting down. By fixing this, it improves the stability and shutdown process of ClickHouse clusters using replication, preventing unnecessary error logs and potential disruptions.

How to use it

The fix is applied automatically in the updated ClickHouse version; no user action or configuration changes are required to benefit from this improvement.