hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject [09/49] git commit: HBASE-10630 NullPointerException in ConnectionManager$HConnectionImplementation.locateRegionInMeta() due to missing region info
Date Sat, 28 Jun 2014 00:30:55 GMT
HBASE-10630 NullPointerException in ConnectionManager$HConnectionImplementation.locateRegionInMeta()
due to missing region info

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-10070@1572761 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/master
Commit: c997c3311e39b218d197c9119bcc42793356fa04
Parents: a98f529
Author: Zhihong Yu <tedyu@apache.org>
Authored: Thu Feb 27 22:26:15 2014 +0000
Committer: Enis Soztutar <enis@apache.org>
Committed: Fri Jun 27 16:39:37 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/client/ConnectionManager.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c997c331/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
index d2b58ae..9a4c8e6 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java
@@ -1065,6 +1065,10 @@ class ConnectionManager {
 
           // convert the row result into the HRegionLocation we need!
           RegionLocations locations = MetaReader.getRegionLocations(regionInfoRow);
+          if (locations == null || locations.getRegionLocation() == null) {
+            throw new IOException("HRegionInfo was null in " +
+              tableName + ", row=" + regionInfoRow);
+          }
           HRegionInfo regionInfo = locations.getRegionLocation().getRegionInfo();
           if (regionInfo == null) {
             throw new IOException("HRegionInfo was null or empty in " +


Mime
View raw message