hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13663 HMaster fails to restart 'HMaster: Failed to become active master'
Date Tue, 12 May 2015 16:02:12 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 77b155858 -> 9250c6b6d


HBASE-13663 HMaster fails to restart 'HMaster: Failed to become active master'


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/9250c6b6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/9250c6b6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/9250c6b6

Branch: refs/heads/branch-1
Commit: 9250c6b6d9e56a8a2695d8d17ded2cd3f358057c
Parents: 77b1558
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue May 12 09:03:07 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue May 12 09:03:07 2015 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/master/AssignmentManager.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/9250c6b6/hbase-server/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
----------------------------------------------------------------------
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 34c4963..cd0e9d7 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
@@ -2949,6 +2949,7 @@ public class AssignmentManager extends ZooKeeperListener {
       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();


Mime
View raw message