v.20.12Improvement

Remove empty directories for async INSERT in Distributed engine

Remove empty directories for async INSERT at start of Distributed engine. #16729 (Azat Khuzhin).
Remove empty directories created for asynchronous INSERT operations at the start of the Distributed engine.

Why it matters

This feature cleans up empty directories that are unnecessarily created when starting asynchronous INSERTs on the Distributed table engine. It helps maintain a cleaner filesystem state, reducing clutter and potential confusion from leftover empty directories.

How to use it

This improvement is applied automatically with the update. No user intervention or configuration changes are required.