v.23.7Improvement

Enhance Error Reporting in ZooKeeperRetriesControl by Preserving Original Stack Trace

When ZooKeeperRetriesControl rethrows an error, it's more useful to see its original stack trace, not the one from ZooKeeperRetriesControl itself. #52347 (Vitaly Baranov).
Improved error stack trace reporting in ZooKeeperRetriesControl

Why it matters

This change enhances the debugging experience by ensuring that when ZooKeeperRetriesControl rethrows an error, the original stack trace is preserved and shown instead of the stack trace from ZooKeeperRetriesControl itself. This helps users and developers quickly identify the root cause of errors related to ZooKeeper operations.

How to use it

No specific user action is required. The improved error stack trace handling is applied automatically when using ZooKeeper-related features in ClickHouse that internally utilize ZooKeeperRetriesControl.