v.20.10Improvement

Fix Memory Leak from Zookeeper Exists Watch

Fix potential memory leak caused by zookeeper exists watch. #14693 (hustnn).
Fixes a potential memory leak caused by the ZooKeeper exists watch mechanism in ClickHouse.

Why it matters

This fix addresses a memory management issue where watches set on ZooKeeper nodes with the exists command could lead to memory leaks. By resolving this, the system's stability and resource usage improve, preventing unnecessary memory consumption during ZooKeeper interactions.

How to use it

This fix is applied internally within ClickHouse. Users should upgrade to the ClickHouse version that includes this fix to benefit from the resolved memory leak. No additional configuration or user action is required.