[jira] [Reopened] (HBASE-23561) Look up of Region in Master by encoded region name is O(n)
[ https://issues.apache.org/jira/browse/HBASE-23561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Dimiduk reopened HBASE-23561: -- Reopen for back-ports. > Look up of Region in Master by encoded region name is O(n) > -- > > Key: HBASE-23561 > URL: https://issues.apache.org/jira/browse/HBASE-23561 > Project: HBase > Issue Type: Bug >Affects Versions: 3.0.0-alpha-1 >Reporter: Michael Stack >Assignee: Minwoo Kang >Priority: Trivial > Fix For: 3.0.0-alpha-1 > > > {{ public RegionState getRegionState(final String encodedRegionName) { > // TODO: Need a map but it is just dispatch merge... > for (RegionStateNode node: regionsMap.values()) { > if (node.getRegionInfo().getEncodedName().equals(encodedRegionName)) { > return node.toRegionState(); > } > } > return null; > }}} > It is not used much so making it trivial. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Reopened] (HBASE-23561) Look up of Region in Master by encoded region name is O(n)
[ https://issues.apache.org/jira/browse/HBASE-23561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Stack reopened HBASE-23561: --- Reopening till get answer on new PR. > Look up of Region in Master by encoded region name is O(n) > -- > > Key: HBASE-23561 > URL: https://issues.apache.org/jira/browse/HBASE-23561 > Project: HBase > Issue Type: Bug >Affects Versions: 3.0.0 >Reporter: Michael Stack >Assignee: Minwoo Kang >Priority: Trivial > Fix For: 3.0.0 > > > {{ public RegionState getRegionState(final String encodedRegionName) { > // TODO: Need a map but it is just dispatch merge... > for (RegionStateNode node: regionsMap.values()) { > if (node.getRegionInfo().getEncodedName().equals(encodedRegionName)) { > return node.toRegionState(); > } > } > return null; > }}} > It is not used much so making it trivial. -- This message was sent by Atlassian Jira (v8.3.4#803005)