hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18193) Master web UI presents the incorrect number of regions
Date Thu, 08 Jun 2017 18:09:18 GMT

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

Enis Soztutar commented on HBASE-18193:
---------------------------------------

+1. 

> 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
>
>         Attachments: HBASE-18193.v0.patch
>
>
> {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)

Mime
View raw message