hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pankaj Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18923) TestTableResource flaky on branch-1
Date Tue, 03 Oct 2017 16:14:00 GMT

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

Pankaj Kumar commented on HBASE-18923:
--------------------------------------

After HBASE-18796, RegionServer create daughter region entries with empty/null server name
(earlier it was same server). So by the time region server open the daughter regions and update
the location, test case wait is getting over since it found the  HRegionLocation size as 2.

{noformat}
     // tell the master to split the table
    admin.split(TABLE);
    // give some time for the split to happen

    long timeout = System.currentTimeMillis() + (15 * 1000);
    while (System.currentTimeMillis() < timeout && m.size()!=2){
      try {
        Thread.sleep(250);
      } catch (InterruptedException e) {
        LOG.warn(StringUtils.stringifyException(e));
      }
      // check again
      m = regionLocator.getAllRegionLocations();
    }

    // should have two regions now
    assertEquals(m.size(), 2);
{noformat}


Log observed while reproducing issue,
{noformat}
2017-10-03 23:42:23,167 INFO  [main] rest.TestTableResource(143): regions: [region=TestTableResource,,1507045342105.8e80f79bc5e1ca9c9b9397142adfd144.,
hostname=null, seqNum=-1, region=TestTableResource,ncu,1507045342105.afd377bd152fd021f304ed474a98298d.,
hostname=null, seqNum=-1]
{noformat}

So during checkTableInfo() it met NPE.

> TestTableResource flaky on branch-1
> -----------------------------------
>
>                 Key: HBASE-18923
>                 URL: https://issues.apache.org/jira/browse/HBASE-18923
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Andrew Purtell
>
> Occasional NPE
> Flaked tests: 
> org.apache.hadoop.hbase.rest.TestTableResource.testTableInfoPB(org.apache.hadoop.hbase.rest.TestTableResource)
>   Run 1: TestTableResource.testTableInfoPB:271->checkTableInfo:184 NullPointer
>   Run 2: PASS
> org.apache.hadoop.hbase.rest.TestTableResource.testTableInfoXML(org.apache.hadoop.hbase.rest.TestTableResource)
>   Run 1: TestTableResource.testTableInfoXML:254->checkTableInfo:184 NullPointer
>   Run 2: PASS
> Tests run: 213, Failures: 0, Errors: 0, Skipped: 0, Flakes: 2



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

Mime
View raw message