hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zhuge (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-12815) Fix TestUnbuffer#testUnbufferException because of expected error message mismatch
Date Wed, 29 Nov 2017 08:59:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-12815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Zhuge resolved HDFS-12815.
-------------------------------
    Resolution: Duplicate

Thanks [~msingh] for reporting the issue. I think it is a dup of HADOOP-15056 where Jack submitted
a patch.

> Fix TestUnbuffer#testUnbufferException because of expected error message mismatch
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-12815
>                 URL: https://issues.apache.org/jira/browse/HDFS-12815
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: fs
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>
> Fix TestUnbuffer#testUnbufferException because of expected error message mismatch.
> This error is seen after HADOOP-15012.
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message