Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16229

testCompressionOnRelativePath() fails due to Files.createDirectory() in macOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Jiangang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: