HBASE-4112 Creating table may throw NullPointerException (Jinchao via Ted Yu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1148138 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f2fde07c7
commit
d757784cbf
|
@ -163,6 +163,7 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-4087 HBaseAdmin should perform validation of connection it holds
|
||||
HBASE-4052 Enabling a table after master switch does not allow table scan,
|
||||
throwing NotServingRegionException (ramkrishna via Ted Yu)
|
||||
HBASE-4112 Creating table may throw NullPointerException (Jinchao via Ted Yu)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||
|
|
|
@ -360,9 +360,13 @@ public class HBaseAdmin implements Abortable, Closeable {
|
|||
MetaScannerVisitor visitor = new MetaScannerVisitor() {
|
||||
@Override
|
||||
public boolean processRow(Result rowResult) throws IOException {
|
||||
HRegionInfo info = Writables.getHRegionInfo(
|
||||
HRegionInfo info = Writables.getHRegionInfoOrNull(
|
||||
rowResult.getValue(HConstants.CATALOG_FAMILY,
|
||||
HConstants.REGIONINFO_QUALIFIER));
|
||||
//If regioninfo is null, skip this row
|
||||
if (null == info) {
|
||||
return true;
|
||||
}
|
||||
if (!(Bytes.equals(info.getTableName(), desc.getName()))) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue