[ https://issues.apache.org/jira/browse/FLINK-16229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Liu updated FLINK-16229: ------------------------ Description: I am using flink 1.10.0. In macOS, cd flink/flink-core and execute "mvn -Dtest=org.apache.flink.util.FileUtilsTest#testCompressionOnRelativePath test". It reports the following error. In linux, the test is ok. So I think that Files.createDirectory(relative path) can not work well in mac. Should flink ignore this test or something better to do? java.nio.file.NoSuchFileException: ../../../../../var/folders/7h/3lhbyjl15m93hz9vpx303jvh0000gn/T/junit2476210278718567929/compressDir/rootDir at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) at java.nio.file.Files.createDirectory(Files.java:674) at org.apache.flink.util.FileUtilsTest.verifyDirectoryCompression(FileUtilsTest.java:440) at org.apache.flink.util.FileUtilsTest.testCompressionOnRelativePath(FileUtilsTest.java:261) was: I am using flink 1.10.0. In macOS, cd flink/flink-core and execute "mvn -Dtest=org.apache.flink.util.FileUtilsTest#testCompressionOnRelativePath test". It reports the following error. In linux, the test is ok. So I think that Files.createDirectory() can not work well in mac. Should flink ignore this test or something better to do? java.nio.file.NoSuchFileException: ../../../../../var/folders/7h/3lhbyjl15m93hz9vpx303jvh0000gn/T/junit2476210278718567929/compressDir/rootDir at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) at java.nio.file.Files.createDirectory(Files.java:674) at org.apache.flink.util.FileUtilsTest.verifyDirectoryCompression(FileUtilsTest.java:440) at org.apache.flink.util.FileUtilsTest.testCompressionOnRelativePath(FileUtilsTest.java:261) > testCompressionOnRelativePath() fails due to Files.createDirectory() in macOS > ----------------------------------------------------------------------------- > > Key: FLINK-16229 > URL: https://issues.apache.org/jira/browse/FLINK-16229 > Project: Flink > Issue Type: Bug > Reporter: Liu > Priority: Minor > > I am using flink 1.10.0. In macOS, cd flink/flink-core and execute > "mvn -Dtest=org.apache.flink.util.FileUtilsTest#testCompressionOnRelativePath > test". It reports the following error. > In linux, the test is ok. So I think that > Files.createDirectory(relative path) can not work well in mac. Should flink > ignore this test or something better to do? > java.nio.file.NoSuchFileException: > ../../../../../var/folders/7h/3lhbyjl15m93hz9vpx303jvh0000gn/T/junit2476210278718567929/compressDir/rootDir > at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at > sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) > at java.nio.file.Files.createDirectory(Files.java:674) at > org.apache.flink.util.FileUtilsTest.verifyDirectoryCompression(FileUtilsTest.java:440) > at > org.apache.flink.util.FileUtilsTest.testCompressionOnRelativePath(FileUtilsTest.java:261) -- This message was sent by Atlassian Jira (v8.3.4#803005)