HBASE-21102 - ServerCrashProcedure should select target server where no
other replicas exist for the current region (fix compilation issue)
This commit is contained in:
parent
dc3ada2614
commit
b09dbb443e
|
@ -1562,6 +1562,7 @@ public abstract class BaseLoadBalancer implements LoadBalancer {
|
||||||
sn = servers.get(i);
|
sn = servers.get(i);
|
||||||
if (!usedSNs.contains(sn)) {
|
if (!usedSNs.contains(sn)) {
|
||||||
usedSNs.add(sn);
|
usedSNs.add(sn);
|
||||||
|
}
|
||||||
} while (cluster.wouldLowerAvailability(regionInfo, sn)
|
} while (cluster.wouldLowerAvailability(regionInfo, sn)
|
||||||
&& iterations++ < maxIterations);
|
&& iterations++ < maxIterations);
|
||||||
if (iterations >= maxIterations) {
|
if (iterations >= maxIterations) {
|
||||||
|
|
Loading…
Reference in New Issue