You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2017/09/14 20:29:00 UTC

[jira] [Reopened] (HBASE-18813) TestCanaryTool fails on branch-1 / branch-1.4

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

Andrew Purtell reopened HBASE-18813:
------------------------------------

I think I may have proposed a "fix" that worked because I first tested with 7, which failed, then tested with 8, which passed, and didn't control for the difference. I find today that while TestCanaryTool passes when executed with a Java 8 JRE it still fails if executed with a Java 7 JRE. 

Therefore, I am going to commit an addendum which adds a conditional that skips these units if running on Java 7. 

> TestCanaryTool fails on branch-1 / branch-1.4 
> ----------------------------------------------
>
>                 Key: HBASE-18813
>                 URL: https://issues.apache.org/jira/browse/HBASE-18813
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>             Fix For: 1.4.0, 1.5.0
>
>         Attachments: HBASE-18813-branch-1.patch
>
>
> Mocking error
> {noformat}
> Running org.apache.hadoop.hbase.tool.TestCanaryTool
> Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 77.873 sec <<< FAILURE! - in org.apache.hadoop.hbase.tool.TestCanaryTool
> testReadTableTimeouts(org.apache.hadoop.hbase.tool.TestCanaryTool)  Time elapsed: 13.845 sec  <<< FAILURE!
> org.mockito.exceptions.verification.junit.ArgumentsAreDifferent: 
> Argument(s) are different! Wanted:
> mockAppender.doAppend(
>     <custom argument matcher>
> );
> -> at org.apache.hadoop.hbase.tool.TestCanaryTool.testReadTableTimeouts(TestCanaryTool.java:150)
> Actual invocation has different arguments:
> mockAppender.doAppend(
>     org.apache.log4j.spi.LoggingEvent@7f5fcfe9
> );
> -> at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 	at org.apache.hadoop.hbase.tool.TestCanaryTool.testReadTableTimeouts(TestCanaryTool.java:150)
> Results :
> Failed tests: 
>   TestCanaryTool.testReadTableTimeouts:150 
> Argument(s) are different! Wanted:
> mockAppender.doAppend(
>     <custom argument matcher>
> );
> -> at org.apache.hadoop.hbase.tool.TestCanaryTool.testReadTableTimeouts(TestCanaryTool.java:150)
> Actual invocation has different arguments:
> mockAppender.doAppend(
>     org.apache.log4j.spi.LoggingEvent@7f5fcfe9
> );
> -> at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
> {noformat}



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