hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11984) TestClassFinder failing on occasion
Date Tue, 16 Sep 2014 18:20:34 GMT

    [ https://issues.apache.org/jira/browse/HBASE-11984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135881#comment-14135881
] 

stack commented on HBASE-11984:
-------------------------------

Debugging shows that the 'target' classes are not always present:

{code}
java.lang.AssertionError: Classes in org.apache.hadoop.hbase
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.apache.hadoop.hbase.TestClassFinder.testClassFinderFiltersByClassInDirs(TestClassFinder.java:255)
{code}

... removed by a concurrent hbase test run?

We should not rely on data outside of test dirs.   Let me add a fix.

> TestClassFinder failing on occasion
> -----------------------------------
>
>                 Key: HBASE-11984
>                 URL: https://issues.apache.org/jira/browse/HBASE-11984
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 2.0.0
>
>         Attachments: 0001-More-debug.patch
>
>
> Failed like this:
> {code}
> Tests run: 11, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.913 sec <<<
FAILURE! - in org.apache.hadoop.hbase.TestClassFinder
> testClassFinderFiltersByClassInDirs(org.apache.hadoop.hbase.TestClassFinder)  Time elapsed:
0.028 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<-1> but was:<0>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:743)
> 	at org.junit.Assert.assertEquals(Assert.java:118)
> 	at org.junit.Assert.assertEquals(Assert.java:555)
> 	at org.junit.Assert.assertEquals(Assert.java:542)
> 	at org.apache.hadoop.hbase.TestClassFinder.testClassFinderFiltersByClassInDirs(TestClassFinder.java:259)
> testClassFinderCanFindClassesInDirs(org.apache.hadoop.hbase.TestClassFinder)  Time elapsed:
0.017 sec  <<< FAILURE!
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.hbase.TestClassFinder.testClassFinderCanFindClassesInDirs(TestClassFinder.java:223)
> testClassFinderFiltersByNameInDirs(org.apache.hadoop.hbase.TestClassFinder)  Time elapsed:
0.018 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<-1> but was:<0>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:743)
> 	at org.junit.Assert.assertEquals(Assert.java:118)
> 	at org.junit.Assert.assertEquals(Assert.java:555)
> 	at org.junit.Assert.assertEquals(Assert.java:542)
> 	at org.apache.hadoop.hbase.TestClassFinder.testClassFinderFiltersByNameInDirs(TestClassFinder.java:242)
> {code}
> ... in precommit https://builds.apache.org/job/PreCommit-HBASE-Build/10912/console



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message