HBASE-14682 CM restore functionality for regionservers is broken

This commit is contained in:
Enis Soztutar 2015-10-26 16:47:16 -07:00
parent 288a274052
commit 1128c855ad
1 changed files with 2 additions and 2 deletions

View File

@ -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);