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

Unit test fails on Windows: TestCopyFiles.testCopyFromLocalToLocal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.16.0
    • 0.16.0
    • fs
    • None
    • Windows

    Description

      Unit test fails on Windows: org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToLocal

      Exception:
      java.io.FileNotFoundException: C:/hudson/workspace/Hadoop-WindowsTest/trunk/build/test/data/destdat/three/three/7695082211392925393
      at org.apache.hadoop.fs.RawLocalFileSystem.open(RawLocalFileSystem.java:144)
      at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:117)
      at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:274)
      at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:262)
      at org.apache.hadoop.fs.TestCopyFiles.checkFiles(TestCopyFiles.java:144)
      at org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToLocal(TestCopyFiles.java:238)

      Standard Error:
      With failures, global counters are inaccurate; consider running with -i
      Copy failed: java.lang.IllegalArgumentException: length != 10(unixSymbolicPermission=drwxrwxrwx+)
      at org.apache.hadoop.fs.permission.FsPermission.valueOf(FsPermission.java:160)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:405)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.write(RawLocalFileSystem.java:429)
      at org.apache.hadoop.util.CopyFiles$FilePair.write(CopyFiles.java:133)
      at org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:956)
      at org.apache.hadoop.util.CopyFiles.setup(CopyFiles.java:727)
      at org.apache.hadoop.util.CopyFiles.copy(CopyFiles.java:475)
      at org.apache.hadoop.util.CopyFiles.run(CopyFiles.java:550)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      at org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToLocal(TestCopyFiles.java:235)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

      Waiting for the Mini HDFS Cluster to start...
      With failures, global counters are inaccurate; consider running with -i
      Copy failed: java.lang.IllegalArgumentException: length != 10(unixSymbolicPermission=drwxrwxrwx+)
      at org.apache.hadoop.fs.permission.FsPermission.valueOf(FsPermission.java:160)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:405)
      at org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus.write(RawLocalFileSystem.java:429)
      at org.apache.hadoop.util.CopyFiles$FilePair.write(CopyFiles.java:133)
      at org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:956)
      at org.apache.hadoop.util.CopyFiles.setup(CopyFiles.java:727)
      at org.apache.hadoop.util.CopyFiles.copy(CopyFiles.java:475)
      at org.apache.hadoop.util.CopyFiles.run(CopyFiles.java:550)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      at org.apache.hadoop.fs.TestCopyFiles.testCopyFromLocalToDfs(TestCopyFiles.java:283)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

      Waiting for the Mini HDFS Cluster to start...

      Attachments

        1. HADOOP-2476.patch
          0.8 kB
          Raghu Angadi

        Issue Links

          Activity

            People

              rangadi Raghu Angadi
              mukundm Mukund Madhugiri
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: