public static void flushFileIfExists(Path path) throws IOException {
        try (FileChannel fileChannel = FileChannel.open(path, StandardOpenOption.READ)) {
            fileChannel.force(true);
        } catch (NoSuchFileException e) {
            log.warn("Failed to flush file {}", path, e);
        }
    }
Flushes dirty file with swallowing {@link NoSuchFileException}
clients/src/main/java/org/apache/kafka/common/utils/Utils.java