HBASE-11947 NoSuchElementException in balancer for master regions (Sergey Soldatov and Jimmy Xiang)

This commit is contained in:
Jimmy Xiang 2014-09-11 10:17:05 -07:00
parent a1b956eb30
commit c95bf404b7
1 changed files with 3 additions and 0 deletions

View File

@ -965,6 +965,9 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
}
ServerName dest = keyIt.next();
if (masterServerName.equals(dest)) {
if (!keyIt.hasNext()) {
keyIt = clusterMap.keySet().iterator();
}
dest = keyIt.next();
}