v.21.12Improvements

Fix potential error with local parts and ZooKeeper during DROP operation

Fix possible "The local set of parts of X doesn't look like the set of parts in ZooKeeper" error (if DROP fails during removing znodes from zookeeper). #30826 (Azat Khuzhin).
Fixes a potential error where the local set of parts does not match the set stored in ZooKeeper when a DROP operation fails during removal of znodes.

Why it matters

This fix addresses the issue that occurs if a DROP command fails while deleting znodes from ZooKeeper, preventing inconsistencies between the local parts metadata and ZooKeeper state. It ensures better stability and consistency of replicated merges and parts management in ClickHouse.

How to use it

This fix is applied internally and requires no user action. Users should upgrade to the version containing this fix to avoid encountering the mentioned error during DROP operations in replicated tables.