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
This commit is contained in:
Zhihong Yu 2014-02-27 22:26:15 +00:00 committed by Enis Soztutar
parent a98f52953a
commit c997c3311e
1 changed files with 4 additions and 0 deletions

View File

@ -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 " +