HBASE-16359 NullPointerException in RSRpcServices.openRegion()

This commit is contained in:
tedyu 2016-08-04 20:46:48 -07:00
parent c9f84e8137
commit 5e23b3aad5
1 changed files with 3 additions and 0 deletions

View File

@ -1741,6 +1741,9 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
} else {
regionServer.updateRegionFavoredNodesMapping(region.getEncodedName(),
regionOpenInfo.getFavoredNodesList());
if (htd == null) {
throw new IOException("Missing table descriptor for " + region.getEncodedName());
}
if (htd.getPriority() >= HConstants.ADMIN_QOS || region.getTable().isSystemTable()) {
regionServer.service.submit(new OpenPriorityRegionHandler(
regionServer, regionServer, region, htd, masterSystemTime));