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