You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Chia-Ping Tsai (JIRA)" <ji...@apache.org> on 2017/09/06 18:11:00 UTC

[jira] [Updated] (HBASE-18765) The value of balancerRan is true even though no plans are executed

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

Chia-Ping Tsai updated HBASE-18765:
-----------------------------------
    Component/s: rsgroup

> The value of balancerRan is true even though no plans are executed
> ------------------------------------------------------------------
>
>                 Key: HBASE-18765
>                 URL: https://issues.apache.org/jira/browse/HBASE-18765
>             Project: HBase
>          Issue Type: Bug
>          Components: rsgroup
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>             Fix For: 2.0.0-alpha-3
>
>
> {code}
>       //We balance per group instead of per table
>       List<RegionPlan> plans = new ArrayList<>();
>       for(Map.Entry<TableName, Map<ServerName, List<HRegionInfo>>> tableMap:
>           getRSGroupAssignmentsByTable(groupName).entrySet()) {
>         LOG.info("Creating partial plan for table " + tableMap.getKey() + ": "
>             + tableMap.getValue());
>         List<RegionPlan> partialPlans = balancer.balanceCluster(tableMap.getValue());
>         LOG.info("Partial plan for table " + tableMap.getKey() + ": " + partialPlans);
>         if (partialPlans != null) {
>           plans.addAll(partialPlans);
>         }
>       }
>       long startTime = System.currentTimeMillis();
>       balancerRan = plans != null;
> {code}
> The *plans* never be null.



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