HBASE-14682 CM restore functionality for regionservers is broken
This commit is contained in:
parent
288a274052
commit
1128c855ad
|
@ -431,8 +431,8 @@ public class DistributedHBaseCluster extends HBaseCluster {
|
|||
protected boolean restoreRegionServers(ClusterStatus initial, ClusterStatus current) {
|
||||
Set<ServerName> toStart = new TreeSet<ServerName>(new ServerNameIgnoreStartCodeComparator());
|
||||
Set<ServerName> toKill = new TreeSet<ServerName>(new ServerNameIgnoreStartCodeComparator());
|
||||
toStart.addAll(initial.getBackupMasters());
|
||||
toKill.addAll(current.getBackupMasters());
|
||||
toStart.addAll(initial.getServers());
|
||||
toKill.addAll(current.getServers());
|
||||
|
||||
for (ServerName server : current.getServers()) {
|
||||
toStart.remove(server);
|
||||
|
|
Loading…
Reference in New Issue