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 d60ce17c1765a445e944738f49953579bdf0bba6.
This commit is contained in:
parent
fd05aabf02
commit
ceaeece2c5
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user