v.22.5Improvement

Fix Bug in MergeTree Table Engines for Outdated Parts Removal After Filesystem Failures

Fix bug which can lead to forgotten outdated parts in MergeTree table engines family in case of filesystem failures during parts removal. Before fix they will be removed only after first server restart. #37014 (alesapin).
Fixed a bug in the MergeTree table engines family where outdated parts could remain undeleted after filesystem failures during parts removal.

Why it matters

This fix addresses an issue causing outdated parts in MergeTree tables to be forgotten and only removed after a server restart, improving data consistency and storage management without requiring a restart.

How to use it

The fix is applied automatically with the update; no additional configuration or action is required from users to benefit from the corrected parts removal behavior.