HBASE-5279 NPE in Master after upgrading to 0.92.0

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1245767 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-02-17 21:24:21 +00:00
parent 7160ecd133
commit 5994c50143
3 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,8 @@ public class MetaReader {
Pair<HRegionInfo, ServerName> region = parseCatalogResult(r);
if (region == null) return true;
HRegionInfo hri = region.getFirst();
if (hri == null) return true;
if (hri.getTableNameAsString() == null) return true;
if (disabledTables.contains(
hri.getTableNameAsString())) return true;
// Are we to include split parents in the list?

View File

@ -2254,6 +2254,7 @@ public class AssignmentManager extends ZooKeeperListener {
if (region == null) continue;
HRegionInfo regionInfo = region.getFirst();
ServerName regionLocation = region.getSecond();
if (regionInfo == null) continue;
String tableName = regionInfo.getTableNameAsString();
if (regionLocation == null) {
// regionLocation could be null if createTable didn't finish properly.

View File

@ -4123,6 +4123,8 @@ public class HRegion implements HeapSize { // , Writable{
}
}
Scan scan = new Scan(get);
RegionScanner scanner = null;
try {
scanner = getScanner(scan);