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:
parent
fd05aabf02
commit
ceaeece2c5
|
@ -32,13 +32,8 @@
|
||||||
HRegionServer rs = (HRegionServer) getServletContext().getAttribute(HRegionServer.REGIONSERVER);
|
HRegionServer rs = (HRegionServer) getServletContext().getAttribute(HRegionServer.REGIONSERVER);
|
||||||
|
|
||||||
Region region = rs.getRegion(regionName);
|
Region region = rs.getRegion(regionName);
|
||||||
String displayName;
|
String displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(),
|
||||||
if (region != null) {
|
rs.getConfiguration());
|
||||||
displayName = RegionInfoDisplay.getRegionNameAsStringForDisplay(region.getRegionInfo(),
|
|
||||||
rs.getConfiguration());
|
|
||||||
} else {
|
|
||||||
displayName = "region {" + regionName + "} is not currently online on this region server";
|
|
||||||
}
|
|
||||||
pageContext.setAttribute("pageTitle", "HBase RegionServer: " + rs.getServerName());
|
pageContext.setAttribute("pageTitle", "HBase RegionServer: " + rs.getServerName());
|
||||||
%>
|
%>
|
||||||
<jsp:include page="header.jsp">
|
<jsp:include page="header.jsp">
|
||||||
|
|
Loading…
Reference in New Issue