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:
parent
a98f52953a
commit
c997c3311e
|
@ -1065,6 +1065,10 @@ class ConnectionManager {
|
||||||
|
|
||||||
// convert the row result into the HRegionLocation we need!
|
// convert the row result into the HRegionLocation we need!
|
||||||
RegionLocations locations = MetaReader.getRegionLocations(regionInfoRow);
|
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();
|
HRegionInfo regionInfo = locations.getRegionLocation().getRegionInfo();
|
||||||
if (regionInfo == null) {
|
if (regionInfo == null) {
|
||||||
throw new IOException("HRegionInfo was null or empty in " +
|
throw new IOException("HRegionInfo was null or empty in " +
|
||||||
|
|
Loading…
Reference in New Issue