From a61c9beeeb6e37190490dae8226284d10127ca30 Mon Sep 17 00:00:00 2001 From: Devaraj Das Date: Tue, 17 Sep 2013 00:08:56 +0000 Subject: [PATCH] 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 --- .../apache/hadoop/hbase/master/RegionPlacementMaintainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionPlacementMaintainer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionPlacementMaintainer.java index 23765dde39d..2335b4f1f08 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionPlacementMaintainer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionPlacementMaintainer.java @@ -685,9 +685,9 @@ public class RegionPlacementMaintainer { } // Update the single server update singleServerPlan.updateAssignmentPlan(region, favoredServerList); - } - regionUpdateInfos.add( + regionUpdateInfos.add( new Pair>(region, favoredServerList)); + } } if (singleServerPlan != null) { // Update the current region server with its updated favored nodes