HBASE-9552. NPE while updating RegionServers with the favored nodes assignments.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1523849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Devaraj Das 2013-09-17 00:08:56 +00:00
parent c26a69f23e
commit a61c9beeeb
1 changed files with 2 additions and 2 deletions

View File

@ -685,10 +685,10 @@ public class RegionPlacementMaintainer {
}
// Update the single server update
singleServerPlan.updateAssignmentPlan(region, favoredServerList);
}
regionUpdateInfos.add(
new Pair<HRegionInfo, List<ServerName>>(region, favoredServerList));
}
}
if (singleServerPlan != null) {
// Update the current region server with its updated favored nodes
BlockingInterface currentRegionServer = connection.getAdmin(entry.getKey());