v.23.11Improvement
Fixed error related to parts mismatch after server restart following TRUNCATE or DROP PARTITION
Fixed possibleThe local set of parts of table doesn't look like the set of parts in ZooKeepererror if server was restarted just afterTRUNCATEorDROP PARTITION. #56282 (Alexander Tokmakov).
Why it matters
This fix addresses a potential error that occurred when a ClickHouse server restart happened right after aTRUNCATE or DROP PARTITION operation, which could cause the local table parts to be out of sync with the metadata stored in ZooKeeper. Ensuring consistency between local parts and ZooKeeper prevents query errors and data inconsistency.