v.21.4Improvements
Fix Directory Already Exists Error in Temp Fetch Process
Fix error Directory tmp_fetch_XXX already exists which could happen after failed fetch part. Delete temporary fetch directory if it already exists. Fixes #14197. #22411 (nvartolomei).Why it matters
This fix addresses an issue where a failed attempt to fetch a data part could leave behind a temporary directory, causing subsequent fetch attempts to fail with the directory already existing. By deleting the temporary fetch directory if it exists, it improves the robustness and reliability of data fetching operations in ClickHouse.How to use it
This fix is applied internally within ClickHouse and requires no user intervention. Simply upgrading to the version including this fix will prevent thetmp_fetch_XXX already exists error during part fetch failures.