Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1470

TestFileStatus fails on some hosts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.22.0
    • None
    • hdfs-client, test
    • None

    Description

      Seems like it is DNS/canonicalized host name-related

      Testcase: testListStatusOnFile took 0.013 sec
      FAILED
      expected:<org.apache.hadoop.fs.FileStatus@cf68a8f0> but was:<org.apache.hadoop.fs.FileStatus@f5e942ef>
      junit.framework.AssertionFailedError: expected:<org.apache.hadoop.fs.FileStatus@cf68a8f0> but was:<org.apache.hadoop.fs.FileStatus@f5e942ef>
      at org.apache.hadoop.hdfs.TestFileStatus.testListStatusOnFile(TestFileStatus.java:160)

      Testcase: testGetFileStatusOnDir took 0.165 sec
      Caused an ERROR
      expected:<hdfs://localhost[.localdomain]:34589/test/mkdirs/f...> but was:<hdfs://localhost[]:34589/test/mkdirs/f...>
      at org.apache.hadoop.hdfs.TestFileStatus.testGetFileStatusOnDir(TestFileStatus.java:250)

      Attachments

        1. failed-TestFileStatus.txt
          31 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: