From 89688d4a43f241a8e98d277f9cd7f1b20eaf68af Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 12 May 2015 09:04:56 -0700 Subject: [PATCH] HBASE-13663 HMaster fails to restart 'HMaster: Failed to become active master' --- .../java/org/apache/hadoop/hbase/master/AssignmentManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java index eae99991474..0fe59a632ad 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java @@ -1653,6 +1653,7 @@ public class AssignmentManager { HRegionLocation[] locations = rl.getRegionLocations(); if (locations == null) continue; for (HRegionLocation hrl : locations) { + if (hrl == null) continue; HRegionInfo regionInfo = hrl.getRegionInfo(); if (regionInfo == null) continue; int replicaId = regionInfo.getReplicaId();