Revert "fix 500/NPE of region.jsp (#1033)"

Missed the jira number on that commit message. Will re-apply it with the jira number.

This reverts commit d60ce17c17.
This commit is contained in:
Wellington Chevreuil 2020-01-15 18:05:23 +00:00
parent fd05aabf02
commit ceaeece2c5
1 changed files with 2 additions and 7 deletions

View File

@ -32,13 +32,8 @@
HRegionServer rs = (HRegionServer) getServletContext().getAttribute(HRegionServer.REGIONSERVER);
Region region = rs.getRegion(regionName);
String displayName;
if (region != null) {
displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(),
rs.getConfiguration());
} else {
displayName = "region {" + regionName + "} is not currently online on this region server";
}
String displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(),
rs.getConfiguration());
pageContext.setAttribute("pageTitle", "HBase RegionServer: " + rs.getServerName());
%>
<jsp:include page="header.jsp">