diff --git a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp index 2c749ffb727..37209c7c263 100644 --- a/hbase-server/src/main/resources/hbase-webapps/master/table.jsp +++ b/hbase-server/src/main/resources/hbase-webapps/master/table.jsp @@ -72,6 +72,25 @@ } String action = request.getParameter("action"); String key = request.getParameter("key"); + long totalStoreFileSizeMB = 0; + + final String numRegionsParam = request.getParameter("numRegions"); + // By default, the page render up to 10000 regions to improve the page load time + int numRegionsToRender = 10000; + if (numRegionsParam != null) { + // either 'all' or a number + if (numRegionsParam.equals("all")) { + numRegionsToRender = -1; + } else { + try { + numRegionsToRender = Integer.parseInt(numRegionsParam); + } catch (NumberFormatException ex) { + // ignore + } + } + } + int numRegions = 0; + %>