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
c312760819
commit
b57bef5b7d
|
@ -255,10 +255,10 @@ public class HbckChore extends ScheduledChore {
|
||||||
for (Map.Entry<String, HbckRegionInfo> entry : regionInfoMap.entrySet()) {
|
for (Map.Entry<String, HbckRegionInfo> entry : regionInfoMap.entrySet()) {
|
||||||
HbckRegionInfo hri = entry.getValue();
|
HbckRegionInfo hri = entry.getValue();
|
||||||
ServerName locationInMeta = hri.getMetaEntry().getRegionServer();
|
ServerName locationInMeta = hri.getMetaEntry().getRegionServer();
|
||||||
|
if (locationInMeta == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
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(hri.getRegionNameAsString())) {
|
if (disabledTableRegions.contains(hri.getRegionNameAsString())) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue