HBASE-9860 Intermittent TestHBaseFsck#testMissingRegionInfoQualifier failure due to NullPointerException

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1537371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-10-31 03:21:01 +00:00
parent 0077c822f7
commit 94aa409410
1 changed files with 2 additions and 1 deletions

View File

@ -1888,7 +1888,8 @@ public class TestHBaseFsck {
@Override
public boolean processRow(Result rowResult) throws IOException {
if(!MetaScanner.getHRegionInfo(rowResult).getTable().isSystemTable()) {
HRegionInfo hri = MetaScanner.getHRegionInfo(rowResult);
if (hri != null && !hri.getTable().isSystemTable()) {
Delete delete = new Delete(rowResult.getRow());
delete.deleteColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
deletes.add(delete);