hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From achou...@apache.org
Subject hbase git commit: HBASE-19094 NPE in RSGroupStartupWorker.waitForGroupTableOnline during master startup
Date Fri, 27 Oct 2017 12:27:47 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 50b7037e7 -> ac0383830


HBASE-19094 NPE in RSGroupStartupWorker.waitForGroupTableOnline during master startup


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

Branch: refs/heads/branch-1.4
Commit: ac03838303dc17e3e580cfdb9eef18491b45ada1
Parents: 50b7037
Author: Abhishek Singh Chouhan <achouhan@apache.org>
Authored: Thu Oct 26 20:17:01 2017 +0530
Committer: Abhishek Singh Chouhan <achouhan@apache.org>
Committed: Fri Oct 27 17:57:11 2017 +0530

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/ac038383/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java
----------------------------------------------------------------------
diff --git a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java
b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java
index eec03ce..80eaefb 100644
--- a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java
+++ b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupInfoManagerImpl.java
@@ -640,7 +640,9 @@ public class RSGroupInfoManagerImpl implements RSGroupInfoManager, ServerListene
                     if(cell != null) {
                       sn = ServerName.parseVersionedServerName(CellUtil.cloneValue(cell));
                     }
-                    if (tsm.isTableState(TableName.NAMESPACE_TABLE_NAME,
+                    if (sn == null) {
+                      nsFound.set(false);
+                    } else if (tsm.isTableState(TableName.NAMESPACE_TABLE_NAME,
                         ZooKeeperProtos.Table.State.ENABLED)) {
                       try {
                         ClientProtos.ClientService.BlockingInterface rs = conn.getClient(sn);


Mime
View raw message