HBASE-19094 NPE in RSGroupStartupWorker.waitForGroupTableOnline during master startup

This commit is contained in:
Abhishek Singh Chouhan 2017-10-26 20:17:01 +05:30
parent 3c62612374
commit 0697db2207
1 changed files with 3 additions and 1 deletions

View File

@ -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);