HBASE-11947 NoSuchElementException in balancer for master regions (Sergey Soldatov and Jimmy Xiang)
This commit is contained in:
parent
d4850f1f17
commit
a6314e2578
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue