[ https://issues.apache.org/jira/browse/HBASE-20186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiang Li updated HBASE-20186: ----------------------------- Description: In { public List<RegionPlan> balanceCluster(Map<ServerName, List<RegionInfo>> clusterState)} for (Address sName : info.getServers()) { for(ServerName curr: clusterState.keySet()) { if(curr.getAddress().equals(sName)) { groupClusterState.put(curr, correctedState.get(curr)); } } } was: In {{public List<RegionPlan> balanceCluster(Map<ServerName, List<RegionInfo>> clusterState)}} for (Address sName : info.getServers()) { for(ServerName curr: clusterState.keySet()) { if(curr.getAddress().equals(sName)) { groupClusterState.put(curr, correctedState.get(curr)); } } } > Improve RSGroupBasedLoadBalancer#balanceCluster() to be more efficient when > calculating cluster state for each rsgroup > ---------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-20186 > URL: https://issues.apache.org/jira/browse/HBASE-20186 > Project: HBase > Issue Type: Improvement > Components: rsgroup > Reporter: Xiang Li > Assignee: Xiang Li > Priority: Minor > > In { > public List<RegionPlan> balanceCluster(Map<ServerName, List<RegionInfo>> > clusterState)} > for (Address sName : info.getServers()) { > for(ServerName curr: clusterState.keySet()) { > if(curr.getAddress().equals(sName)) { > groupClusterState.put(curr, correctedState.get(curr)); > } > } > } -- This message was sent by Atlassian JIRA (v7.6.3#76005)