Michael Stack created HBASE-23561:
-------------------------------------

             Summary: 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
            Reporter: Michael Stack


{{  public RegionState getRegionState(final String encodedRegionName) {
    // TODO: Need a map <encodedName, ...> 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)

Reply via email to