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

Jeffrey Zhong updated HBASE-9723:
---------------------------------

    Attachment: hbase-9723.patch

I think the reason for testFailAndSuccess failure is that the test doesn't 
really complete like the retry didn't release the task count(because the test 
only wait for hasError becomes true but there still are clean up work) yet so 
the following put failed to be submitted.

For testThreadCreation, it's due to the reason that work item for one server 
completes too quickly so the second thread isn't created instead the first 
thread is reused for the work item of another server. I added one second sleep 
to simulate work load so that threadpool can trigger one more thread.

> TestAsyncProcess#testFailAndSuccess & testThreadCreation are flaky on SUSE
> --------------------------------------------------------------------------
>
>                 Key: HBASE-9723
>                 URL: https://issues.apache.org/jira/browse/HBASE-9723
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.96.0
>            Reporter: Jeffrey Zhong
>            Assignee: Jeffrey Zhong
>            Priority: Minor
>             Fix For: 0.98.0, 0.96.1
>
>         Attachments: hbase-9723.patch
>
>
> When TestAsyncProcess runs on SUSE, the testFailAndSuccess & 
> testThreadCreation fails intermittently with the following stack:
> Error Trace for testFailAndSuccess
> {code}
> java.lang.AssertionError
>       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.client.TestAsyncProcess.testFailAndSuccess(TestAsyncProcess.java:394)
> {code}
> Error trace for testThreadCreation
> {code}
> java.lang.AssertionError: expected:<1> but was:<2>
>       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.client.TestAsyncProcess.testThreadCreation(TestAsyncProcess.java:728)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to