HBASE-19094 NPE in RSGroupStartupWorker.waitForGroupTableOnline during master startup

This commit is contained in:
Abhishek Singh Chouhan 2017-10-26 19:40:06 +05:30
parent 8e6d116ae3
commit f981de5bb9
1 changed files with 3 additions and 1 deletions

View File

@ -691,7 +691,9 @@ class RSGroupInfoManagerImpl implements RSGroupInfoManager {
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,
TableState.State.ENABLED)) {
try {
ClientProtos.ClientService.BlockingInterface rs = conn.getClient(sn);