diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HbckChore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HbckChore.java index 5f04c84d115..63fb5dde4b3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HbckChore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HbckChore.java @@ -255,10 +255,10 @@ public class HbckChore extends ScheduledChore { for (Map.Entry entry : regionInfoMap.entrySet()) { HbckRegionInfo hri = entry.getValue(); ServerName locationInMeta = hri.getMetaEntry().getRegionServer(); + if (locationInMeta == null) { + continue; + } if (hri.getDeployedOn().size() == 0) { - if (locationInMeta == null) { - continue; - } // skip the offline region which belong to disabled table. if (disabledTableRegions.contains(hri.getRegionNameAsString())) { continue;