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/06/08 08:07:18 UTC

[jira] [Updated] (HBASE-18193) Master web UI presents the incorrect number of regions

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

Chia-Ping Tsai updated HBASE-18193:
-----------------------------------
    Fix Version/s: 3.0.0
                   2.0.0

> Master web UI presents the incorrect number of regions
> ------------------------------------------------------
>
>                 Key: HBASE-18193
>                 URL: https://issues.apache.org/jira/browse/HBASE-18193
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 3.0.0
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>             Fix For: 2.0.0, 3.0.0
>
>
> {code:title=RegionStates.java}
>   public Map<RegionState.State, List<HRegionInfo>> getRegionByStateOfTable(TableName tableName) {
>     final State[] states = State.values();
>     final Map<RegionState.State, List<HRegionInfo>> tableRegions =
>         new HashMap<State, List<HRegionInfo>>(states.length);
>     for (int i = 0; i < states.length; ++i) {
>       tableRegions.put(states[i], new ArrayList<HRegionInfo>());
>     }
>     for (RegionStateNode node: regionsMap.values()) {
>       tableRegions.get(node.getState()).add(node.getRegionInfo());
>     }
>     return tableRegions;
>   }
> {code}
> It always returns all regions...



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)