From 5e23b3aad5fffbb564d793f1d722d152e39f628a Mon Sep 17 00:00:00 2001 From: tedyu Date: Thu, 4 Aug 2016 20:46:48 -0700 Subject: [PATCH] HBASE-16359 NullPointerException in RSRpcServices.openRegion() --- .../org/apache/hadoop/hbase/regionserver/RSRpcServices.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java index f9b78e11ffc..0de4a285705 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java @@ -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));