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

TestFileStatus fails intermittently on trunk and branch2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 3.0.0-alpha1
    • 2.4.0
    • None
    • Reviewed

    Description

      testGetFileStatusOnNonExistantFileDir() fails intermittently on trunk and branch2.

      On doing further research on this, I found that it is a JDK7 issue.
      testGetFileStatusOnNonExistantFileDir() only fails when it runs after testGetFileStatusOnDir()

      Stacktrace:

      Running org.apache.hadoop.hdfs.TestFileStatus
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.858 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestFileStatus
      test(org.apache.hadoop.hdfs.TestFileStatus)  Time elapsed: 0.414 sec  <<< FAILURE!
      java.lang.AssertionError: listStatus of non-existent path should fail
      	at org.junit.Assert.fail(Assert.java:93)
      	at org.apache.hadoop.hdfs.TestFileStatus.testGetFileStatusOnNonExistantFileDir(TestFileStatus.java:178)
      
      
      Results :
      
      Failed tests: 
        TestFileStatus.test:102->testGetFileStatusOnNonExistantFileDir:178 listStatus of non-existent path should fail
      

      Attachments

        1. HDFS-5904.patch
          0.6 kB
          Mit Desai

        Activity

          People

            mitdesai Mit Desai
            mitdesai Mit Desai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: