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

Fix TestUnbuffer#testUnbufferException because of expected error message mismatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • fs
    • None

    Description

      Fix TestUnbuffer#testUnbufferException because of expected error message mismatch.
      This error is seen after HADOOP-15012.

      Running org.apache.hadoop.fs.TestUnbuffer
      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.687 sec <<< FAILURE! - in org.apache.hadoop.fs.TestUnbuffer
      testUnbufferException(org.apache.hadoop.fs.TestUnbuffer)  Time elapsed: 0.134 sec  <<< FAILURE!
      java.lang.AssertionError: Expected test to throw (an instance of java.lang.UnsupportedOperationException and exception with message a string containing "this stream org.apache.hadoop.fs.FSInputStream$$EnhancerByMockitoWithCGLIB$$24bda532 does not support unbuffering")
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.rules.ExpectedException.failDueToMissingException(ExpectedException.java:184)
      	at org.junit.rules.ExpectedException.access$100(ExpectedException.java:85)
      	at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:170)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

      Attachments

        Issue Links

          Activity

            People

              msingh Mukul Kumar Singh
              msingh Mukul Kumar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: