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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1-win
    • Fix Version/s: 1-win
    • Component/s: test
    • Labels:
      None
    • Environment:

      Windows

    • Target Version/s:
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: