HBASE-25077: hbck.jsp page loading fails, logs NPE in master log. (#2433)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Pankaj Kumar<pankajkumar@apache.org>
This commit is contained in:
Mohammad Arshad 2020-09-27 11:35:38 +05:30 committed by Guanghao Zhang
parent 6b93373a0a
commit bd2dd21e48
1 changed files with 3 additions and 3 deletions

View File

@ -255,10 +255,10 @@ public class HbckChore extends ScheduledChore {
for (Map.Entry<String, HbckRegionInfo> 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;