Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.18.0
    • 0.18.0
    • test
    • None
    • Linux

    • Reviewed

    Description

      test-libhdfs fails on Linux

      Console output:
      [exec] Opened /tmp/testfile.txt for writing successfully...
      [exec] Wrote 14 bytes
      [exec] Current position: 14
      [exec] Flushed /tmp/testfile.txt successfully!
      [exec] hdfsAvailable: 14
      [exec] Current position: 1
      [exec] Read following 13 bytes:
      [exec] ello, World!
      [exec] Read following 14 bytes:
      [exec] Hello, World!
      [exec] hdfsCopy(remote-local): Success!
      [exec] hdfsCopy(remote-remote): Success!
      [exec] hdfsMove(local-local): Success!
      [exec] hdfsMove(remote-local): Success!
      [exec] hdfsRename: Success!
      [exec] hdfsCopy(remote-remote): Success!
      [exec] hdfsCreateDirectory: Success!
      [exec] hdfsSetReplication: Success!
      [exec] hdfsGetWorkingDirectory: hdfs://localhost:23000/user/hadoopqa
      [exec] hdfsSetWorkingDirectory: Success!
      [exec] hdfsGetWorkingDirectory: /tmp
      [exec] hdfsGetDefaultBlockSize: 67108864
      [exec] hdfsGetCapacity: 1645537427456
      [exec] hdfsGetUsed: 24576
      [exec] hdfsGetPathInfo - SUCCESS!
      [exec] Name: /tmp, Type: D, Replication: 0, BlockSize: 0, Size: 0, LastMod: Tue May 27 03:27:35 2008
      [exec] Name: hdfs://localhost:23000/tmp/newdir, Type: D, Replication: 0, BlockSize: 0, Size: 0, LastMod: Tue May 27 03:27:35 2008
      [exec] Name: hdfs://localhost:23000/tmp/testfile.txt, Type: F, Replication: 2, BlockSize: 67108864, Size: 14, LastMod: Tue May 27 03:27:35 2008
      [exec] Name: hdfs://localhost:23000/tmp/testfile2.txt, Type: F, Replication: 1, BlockSize: 67108864, Size: 14, LastMod: Tue May 27 03:27:35 2008
      [exec] Exception in thread "main" java.lang.NoSuchMethodError: getFileCacheHints
      [exec] stopping datanode
      [exec] stopping namenode
      [exec] exiting with 1
      [exec] make: *** [test] Error 1

      Attachments

        1. HADOOP-3451-1.patch
          4 kB
          Lohit Vijaya Renu

        Activity

          Looks like only LINUX test-libhdfs caught this. Attached patch replaces the use of removed getFileCacheHints to getFileBLockLocations.

          lohit Lohit Vijaya Renu added a comment - Looks like only LINUX test-libhdfs caught this. Attached patch replaces the use of removed getFileCacheHints to getFileBLockLocations.
          hadoopqa Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12382881/HADOOP-3451-1.patch
          against trunk revision 659405.

          +1 @author. The patch does not contain any @author tags.

          -1 tests included. The patch doesn't appear to include any new or modified tests.
          Please justify why no tests are needed for this patch.

          +1 javadoc. The javadoc tool did not generate any warning messages.

          +1 javac. The applied patch does not increase the total number of javac compiler warnings.

          +1 findbugs. The patch does not introduce any new Findbugs warnings.

          +1 release audit. The applied patch does not increase the total number of release audit warnings.

          +1 core tests. The patch passed core unit tests.

          +1 contrib tests. The patch passed contrib unit tests.

          Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/testReport/
          Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
          Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/artifact/trunk/build/test/checkstyle-errors.html
          Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/console

          This message is automatically generated.

          hadoopqa Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12382881/HADOOP-3451-1.patch against trunk revision 659405. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no tests are needed for this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2517/console This message is automatically generated.

          this patch does not include test, replaces removed API with new one.

          lohit Lohit Vijaya Renu added a comment - this patch does not include test, replaces removed API with new one.

          I just committed this. Thanks, Lohit

          cdouglas Christopher Douglas added a comment - I just committed this. Thanks, Lohit
          hudson Hudson added a comment -
          hudson Hudson added a comment - Integrated in Hadoop-trunk #506 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/506/ )

          People

            lohit Lohit Vijaya Renu
            mukundm Mukund Madhugiri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: