MINOR: Skip fsync on parent directory to start Kafka on ZOS
Reviewers: Cong Ding Jun Rao
@@ -954,7 +954,7 @@ public final class Utils {
* @throws IOException if flushing the directory fails.
*/
public static void flushDir(Path path) throws IOException {
- if (path != null && !OperatingSystem.IS_WINDOWS) {
+ if (path != null && !OperatingSystem.IS_WINDOWS && !OperatingSystem.IS_ZOS) {
try (FileChannel dir = FileChannel.open(path, StandardOpenOption.READ)) {
dir.force(true);
}
