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

chunhui shen commented on HBASE-7299:
-------------------------------------

I think it is a problem of the test case.

{code}
public static void beforeClass() throws Exception {
    UTIL.startMiniCluster(slaves);
    HTable t = UTIL.createTable(Bytes.toBytes(TEST_TABLE), 
Bytes.toBytes(FAMILY));
    UTIL.createMultiRegions(t, Bytes.toBytes(FAMILY));
    t.close();
  }
{code}

Here, we create multi regions for table TEST_TABLE, but it is asynchronous, so 
these regions may not onlined on the regionserver when we do the assert for 
count of regions.

Another failed case is also the same reason, 
{code}
 if (doAbort) {
      LOG.info("Aborted=" + UTIL.getMiniHBaseCluster().abortRegionServer(0));

      // try putting more keys after the abort. same key/qual... just validating
      // no exceptions thrown
      puts = constructPutRequests();
      for (Row put : puts) {
        table.put((Put) put);
      }

      table.flushCommits();
    }
{code}

Abort server is also asynchronous, we will do checkopen() for put in 
HRegionserver in 0.94 version, but now not. Therefore, though we could put keys 
successfully, the abort server's thread may not exit, and then got 
{code}java.lang.AssertionError: Server count=2, abort=true expected:<1> but 
was:<2>
{code}


                
> TestMultiParallel fails intermittently in trunk builds
> ------------------------------------------------------
>
>                 Key: HBASE-7299
>                 URL: https://issues.apache.org/jira/browse/HBASE-7299
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Critical
>             Fix For: 0.96.0
>
>
> From trunk build #3598:
> {code}
>  testFlushCommitsNoAbort(org.apache.hadoop.hbase.client.TestMultiParallel): 
> Count of regions=8
> {code}
> It failed in 3595 as well:
> {code}
> java.lang.AssertionError: Server count=2, abort=true expected:<1> but was:<2>
>       at org.junit.Assert.fail(Assert.java:93)
>       at org.junit.Assert.failNotEquals(Assert.java:647)
>       at org.junit.Assert.assertEquals(Assert.java:128)
>       at org.junit.Assert.assertEquals(Assert.java:472)
>       at 
> org.apache.hadoop.hbase.client.TestMultiParallel.doTestFlushCommits(TestMultiParallel.java:267)
>       at 
> org.apache.hadoop.hbase.client.TestMultiParallel.testFlushCommitsWithAbort(TestMultiParallel.java:226)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to