Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9722

Branch-1-win TestNativeIO failed caused by Window incompatible test case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1-win
    • 1-win
    • test
    • None
    • Windows

    • Reviewed

    Description

      org.apache.hadoop.io.nativeio.TestNativeIO#testPosixFadvise() failed on Windows. Here is the error information.
      \dev\zero (The system cannot find the path specified)
      java.io.FileNotFoundException: \dev\zero (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:120)
      at java.io.FileInputStream.<init>(FileInputStream.java:79)
      at org.apache.hadoop.io.nativeio.TestNativeIO.testPosixFadvise(TestNativeIO.java:277)
      The root cause of this is "/dev/zero" is used and Windows does not have devices like the unix /dev/zero or /dev/random.

      Attachments

        1. HADOOP-9722.patch
          0.6 kB
          Douma Fang

        Activity

          People

            xifang Douma Fang
            xifang Douma Fang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: