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

This reverts commit ae95b1f215.
(reverting as commit message lacks jira id. Will rea-apply soon with the jira id)
This commit is contained in:
Wellington Chevreuil 2020-01-16 13:59:05 +00:00
parent 8b5f467716
commit bd4eba2b53
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">