hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chia-Ping Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-18193) Master web UI presents the incorrect number of regions
Date Thu, 08 Jun 2017 08:06:19 GMT
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

  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()) {
    return tableRegions;
It always returns all regions...

This message was sent by Atlassian JIRA

View raw message