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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

JIRA jira@apache.org
Chia-Ping Tsai created HBASE-18193:
--------------------------------------

             Summary: 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


{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)
Loading...