hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-16830 RSRpcServices#openRegion() should handle the case where table descriptor is null
Date Mon, 24 Oct 2016 15:37:42 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 51522c14b -> 3203e2724


HBASE-16830 RSRpcServices#openRegion() should handle the case where table descriptor is null


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

Branch: refs/heads/branch-1.1
Commit: 3203e27245bb68dddcd1331e38a79bcf5c44912b
Parents: 51522c1
Author: tedyu <yuzhihong@gmail.com>
Authored: Mon Oct 24 08:37:35 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Oct 24 08:37:35 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3203e272/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
----------------------------------------------------------------------
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 5b087a1..39c1347 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
@@ -1476,6 +1476,9 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
         htd = htds.get(region.getTable());
         if (htd == null) {
           htd = regionServer.tableDescriptors.get(region.getTable());
+          if (htd == null) {
+            throw new IOException("missing table descriptor for " + region.getEncodedName());
+          }
           htds.put(region.getTable(), htd);
         }
 


Mime
View raw message