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 5c56e239c3
commit 2b86002521
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) { 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);