HBase
  1. HBase
  2. HBASE-6306

TestFSUtils fails against hadoop 2.0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.95.2
    • Fix Version/s: 0.95.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      trunk: mvn clean test -Dhadoop.profile=2.0 -Dtest=TestFSUtils

      java.io.FileNotFoundException: File /home/jon/proj/hbase-trunk/hbase-server/target/test-data/02beb8c8-06c1-47ea-829b-6e7ce0570cf8/hbase.version does not exist
              at org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:315)
              at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1279)
              at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1319)
              at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:557)
              at org.apache.hadoop.fs.FilterFileSystem.listStatus(FilterFileSystem.java:213)
              at org.apache.hadoop.hbase.util.FSUtils.getVersion(FSUtils.java:270)
              at org.apache.hadoop.hbase.util.TestFSUtils.testVersion(TestFSUtils.java:58)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...     
      

        Issue Links

          Activity

          Hide
          Jonathan Hsieh added a comment -

          Review was here: https://reviews.apache.org/r/5723/ and +1'ed.

          Show
          Jonathan Hsieh added a comment - Review was here: https://reviews.apache.org/r/5723/ and +1'ed.
          Hide
          Jonathan Hsieh added a comment -

          Thanks for the review Andrew!

          Show
          Jonathan Hsieh added a comment - Thanks for the review Andrew!
          Hide
          Jonathan Hsieh added a comment -

          This seems to fix the trunk part of HBASE-6305.

          Show
          Jonathan Hsieh added a comment - This seems to fix the trunk part of HBASE-6305 .
          Hide
          Hudson added a comment -

          Integrated in HBase-TRUNK #3094 (See https://builds.apache.org/job/HBase-TRUNK/3094/)
          HBASE-6306 TestFSUtils fails against hadoop 2.0 (Revision 1356954)

          Result = SUCCESS
          jmhsieh :
          Files :

          • /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
          Show
          Hudson added a comment - Integrated in HBase-TRUNK #3094 (See https://builds.apache.org/job/HBase-TRUNK/3094/ ) HBASE-6306 TestFSUtils fails against hadoop 2.0 (Revision 1356954) Result = SUCCESS jmhsieh : Files : /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
          Hide
          ramkrishna.s.vasudevan added a comment -

          In 0.94 this is not there right, Jon? Because for us this testcase in 0.94 passes on hadoop2.0.

          Show
          ramkrishna.s.vasudevan added a comment - In 0.94 this is not there right, Jon? Because for us this testcase in 0.94 passes on hadoop2.0.
          Hide
          Jonathan Hsieh added a comment -

          Ram, correct. The test is new for 0.96, and the check function is different in 0.94. (previously used fs.exists, now uses fs.filestatus).

          Show
          Jonathan Hsieh added a comment - Ram, correct. The test is new for 0.96, and the check function is different in 0.94. (previously used fs.exists, now uses fs.filestatus).
          Hide
          stack added a comment -

          Marking closed.

          Show
          stack added a comment - Marking closed.

            People

            • Assignee:
              Jonathan Hsieh
              Reporter:
              Jonathan Hsieh
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development