You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Liu (Jira)" <ji...@apache.org> on 2020/02/22 01:41:00 UTC

[jira] [Created] (FLINK-16229) testCompressionOnRelativePath() fails due to Files.createDirectory() in macOS

Liu created FLINK-16229:
---------------------------

             Summary: 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


      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/junit761366460676035615/compressDir/rootDirjava.nio.file.NoSuchFileException: ../../../../../var/folders/7h/3lhbyjl15m93hz9vpx303jvh0000gn/T/junit761366460676035615/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:445) at org.apache.flink.util.FileUtilsTest.testCompressionOnRelativePath(FileUtilsTest.java:265)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)