v.21.1Improvements

Fix Experimental Feature: fsync Functions Not Working

Fix never worked fsync_part_directory/fsync_after_insert/in_memory_parts_insert_sync (experimental feature). #18845 (Azat Khuzhin).
Fixes the experimental feature involving fsync_part_directory, fsync_after_insert, and in_memory_parts_insert_sync, which ensures proper synchronization of inserted parts to disk.

Why it matters

This feature addresses issues where data synchronization flags related to part directory fsync and insert synchronization did not work as intended. It guarantees that data parts are safely written and synchronized to disk, improving data durability and consistency after inserts.

How to use it

Enable the experimental feature by setting the flags fsync_part_directory, fsync_after_insert, and in_memory_parts_insert_sync as needed in the ClickHouse server configuration or table settings to ensure proper fsync behavior after inserts.