v.25.9Improvement

Fix error

Fixed error in case of executing SYSTEM DROP REPLICA against a Catalog with corrupted metadata. #86391 (Nikita Mikhaylov).
Fixed an error occurring when executing SYSTEM DROP REPLICA on a Catalog with corrupted metadata.

Why it matters

This fix addresses a stability issue where the SYSTEM DROP REPLICA command would fail if the ClickHouse Catalog metadata was corrupted, improving robustness and error handling in replica management.

How to use it

Use the SYSTEM DROP REPLICA command as usual to drop replicas. The fix makes the command handle corrupted metadata gracefully without errors.