HBASE-11947 NoSuchElementException in balancer for master regions (Sergey Soldatov and Jimmy Xiang)
This commit is contained in:
parent
a1b956eb30
commit
c95bf404b7
|
@ -965,6 +965,9 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
|
||||||
}
|
}
|
||||||
ServerName dest = keyIt.next();
|
ServerName dest = keyIt.next();
|
||||||
if (masterServerName.equals(dest)) {
|
if (masterServerName.equals(dest)) {
|
||||||
|
if (!keyIt.hasNext()) {
|
||||||
|
keyIt = clusterMap.keySet().iterator();
|
||||||
|
}
|
||||||
dest = keyIt.next();
|
dest = keyIt.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue