saintstack commented on issue #923: HBASE-23554 Encoded regionname to 
regionname utility
URL: https://github.com/apache/hbase/pull/923#issuecomment-564270053
 
 
   Yes. Lookup by encoded name is expensive:
   ```
   
     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;
     }
   
   
   ```
   
   I took a look for the JIRA on improving lookup, but couldn't find it. Made 
HBASE-23561

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to