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:
parent
6b93373a0a
commit
bd2dd21e48
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue