hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16910) Avoid NPE when start StochasticLoadBalancer
Date Fri, 21 Oct 2016 17:23:59 GMT

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

Ted Yu commented on HBASE-16910:
--------------------------------

Ran the following with patch v1 locally:
{code}
Running org.apache.hadoop.hbase.client.TestIncrementFromClientSideWithCoprocessor
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 31.56 sec - in org.apache.hadoop.hbase.client.TestIncrementFromClientSideWithCoprocessor
Running org.apache.hadoop.hbase.client.TestAvoidCellReferencesIntoShippedBlocks
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.905 sec - in org.apache.hadoop.hbase.client.TestAvoidCellReferencesIntoShippedBlocks
Running org.apache.hadoop.hbase.client.TestScannerTimeout
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.463 sec - in org.apache.hadoop.hbase.client.TestScannerTimeout
{code}

> Avoid NPE when start StochasticLoadBalancer
> -------------------------------------------
>
>                 Key: HBASE-16910
>                 URL: https://issues.apache.org/jira/browse/HBASE-16910
>             Project: HBase
>          Issue Type: Bug
>          Components: Balancer
>    Affects Versions: 2.0.0
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>            Priority: Minor
>         Attachments: HBASE-16910-v1.patch, HBASE-16910.patch
>
>
> When master start, it initialize StochasticLoadBalancer.
> {code}
> this.balancer.setClusterStatus(getClusterStatus());
> this.balancer.setMasterServices(this);
> {code}
> It first setClusterStatus(), then setMasterService(). But in setClusterStatus method,
it use master service which is not initialized. So it will throw NPE.
> {code}
> int tablesCount = isByTable ? services.getTableDescriptors().getAll().size() : 1;
> {code}
> It happens when set isByTable is ture.



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

Mime
View raw message