hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhangduo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-13145) TestNamespaceAuditor.testRegionMerge is flaky
Date Tue, 03 Mar 2015 06:38:04 GMT
zhangduo created HBASE-13145:

             Summary: TestNamespaceAuditor.testRegionMerge is flaky
                 Key: HBASE-13145
                 URL: https://issues.apache.org/jira/browse/HBASE-13145
             Project: HBase
          Issue Type: Bug
          Components: test
            Reporter: zhangduo

Dig into the log
Seems a split operation which we expect to success is started before we finishing a merge
and cause an infinite sleep loop.

I guess the problem is here
    // merge the two regions
      hris.get(1).getEncodedNameAsBytes(), false);
    while (admin.getTableRegions(tableTwo).size() == initialRegions) {
I guess that during a merge, we can get more region count than before because we first online
the new region and then offline the two old regions.
So change it to admin.getTableRegions(tableTwo).size() != initialRegions - 1 may work.

And we can modify the while loop to use Waiter.waitFor which can provide more useful information
when test failed.

This message was sent by Atlassian JIRA

View raw message