[
https://issues.apache.org/jira/browse/HBASE-7061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tianying Chang resolved HBASE-7061.
-----------------------------------
Resolution: Fixed
Fix Version/s: 0.92.3
the fix is in the same patch as the related bug.
> region balance algorithm should do "contiue" instead of "break" when
> calculating the underloaded server
> -------------------------------------------------------------------------------------------------------
>
> Key: HBASE-7061
> URL: https://issues.apache.org/jira/browse/HBASE-7061
> Project: HBase
> Issue Type: Bug
> Reporter: Tianying Chang
> Assignee: Tianying Chang
> Fix For: 0.92.3
>
>
> I found this issue when investigating HBASE-7060. Basically, I think the
> intention of this code below is to find all the underloaded server. By using
> break, it will exit earlier, depending on where the non-overloaded server
> show up in the list. "break" should be changed to "continue".
> Map<ServerName, Integer> underloadedServers = new HashMap<ServerName,
> Integer>();
> for (Map.Entry<ServerAndLoad, List<HRegionInfo>> server:
> serversByLoad.entrySet()) {
> int regionCount = server.getKey().getLoad();
> if (regionCount >= min) { break; }
> underloadedServers.put(server.getKey().getServerName(), min - regionCount);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira