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 d4850f1f17
commit a6314e2578
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();
}