HBASE-23041 Should not show split parent regions in HBCK report's unknown server part (#634)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
20bfb43db6
commit
a0e8723b73
|
@ -706,6 +706,10 @@ public class CatalogJanitor extends ScheduledChore {
|
||||||
// This should never happen but if it does, will mess up below.
|
// This should never happen but if it does, will mess up below.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// Skip split parent region
|
||||||
|
if (location.getRegion().isSplitParent()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// skip the offline regions which belong to disabled table.
|
// skip the offline regions which belong to disabled table.
|
||||||
if (isTableDisabled(location.getRegion())) {
|
if (isTableDisabled(location.getRegion())) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -227,6 +227,9 @@ public class HbckChore extends ScheduledChore {
|
||||||
HbckRegionInfo hri = entry.getValue();
|
HbckRegionInfo hri = entry.getValue();
|
||||||
ServerName locationInMeta = hri.getMetaEntry().getRegionServer();
|
ServerName locationInMeta = hri.getMetaEntry().getRegionServer();
|
||||||
if (hri.getDeployedOn().size() == 0) {
|
if (hri.getDeployedOn().size() == 0) {
|
||||||
|
if (locationInMeta == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// skip the offline region which belong to disabled table.
|
// skip the offline region which belong to disabled table.
|
||||||
if (disabledTableRegions.contains(encodedRegionName)) {
|
if (disabledTableRegions.contains(encodedRegionName)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue