anchor.diff:    try {
     table = master.getConnection().getTable(TableName.valueOf(fqtn));
     if (table.getDescriptor().getRegionReplication() > 1) {
  -    tableHeader = "<h2>Table Regions</h2><table id=\"tableRegionTable\" class=\"tablesorter table table-striped\" style=\"table-layout: fixed; word-wrap: break-word;\"><thead><tr><th>Name</th><th>Region Server</th><th>ReadRequests</th><th>WriteRequests</th><th>StorefileSize</th><th>Num.Storefiles</th><th>MemSize</th><th>Locality</th><th>Start Key</th><th>End Key</th><th>ReplicaID</th></tr></thead>";
       withReplica = true;
  -  } else {
  -    tableHeader = "<h2>Table Regions</h2><table id=\"tableRegionTable\" class=\"tablesorter table table-striped\" style=\"table-layout: fixed; word-wrap: break-word;\"><thead><tr><th>Name</th><th>Region Server</th><th>ReadRequests</th><th>WriteRequests</th><th>StorefileSize</th><th>Num.Storefiles</th><th>MemSize</th><th>Locality</th><th>Start Key</th><th>End Key</th></tr></thead>";
     }
     if ( !readOnly && action != null ) {
   %>
  
positive.code:   long totalSize = 0;
    long totalStoreFileCount = 0;
    long totalMemSize = 0;
    String totalMemSizeStr = ZEROMB;
    String totalSizeStr = ZEROMB;
    String urlRegionServer = null;
    Map<ServerName, Integer> regDistribution = new TreeMap<>();
    Map<ServerName, Integer> primaryRegDistribution = new TreeMap<>();
    List<HRegionLocation> regions = r.getAllRegionLocations();
  
negative.code: <%
    if(fqtn.equals(TableName.META_TABLE_NAME.getNameAsString())) {
  %>
  <h2>Table Regions</h2>
  <div class="tabbable">
    <ul class="nav nav-pills">
      <li class="active">
        <a href="#metaTab_baseStats" data-toggle="tab">Base Stats</a>
      </li>
      <li class="">
        <a href="#metaTab_compactStats" data-toggle="tab">Compactions</a>
      </li>
    </ul>
    <div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
      <div class="tab-pane active" id="metaTab_baseStats">
        <table id="tableRegionTable" class="tablesorter table table-striped">
          <thead>
            <tr>
              <th>Name</th>
              <th>Region Server</th>
              <th>ReadRequests</th>
              <th>WriteRequests</th>
              <th>StorefileSize</th>
              <th>Num.Storefiles</th>
              <th>MemSize</th>
              <th>Locality</th>
              <th>Start Key</th>
              <th>End Key</th>
              <%
                if (withReplica) {
              %>
              <th>ReplicaID</th>
              <%
                }
              %>
            </tr>
          </thead>
          <tbody>
          <%
            // NOTE: Presumes meta with one or more replicas
            for (int j = 0; j < numMetaReplicas; j++) {
              RegionInfo meta = RegionReplicaUtil.getRegionInfoForReplica(
                                      RegionInfoBuilder.FIRST_META_REGIONINFO, j);
              ServerName metaLocation = MetaTableLocator.waitMetaRegionLocation(master.getZooKeeper(), j, 1);
              for (int i = 0; i < 1; i++) {
                String hostAndPort = "";
                String readReq = "N/A";
                String writeReq = "N/A";
                String fileSize = ZEROMB;
                String fileCount = "N/A";
                String memSize = ZEROMB;
                float locality = 0.0f;
  
                if (metaLocation != null) {
                  ServerMetrics sl = master.getServerManager().getLoad(metaLocation);
                  // The host name portion should be safe, but I don't know how we handle IDNs so err on the side of failing safely.
                  hostAndPort = URLEncoder.encode(metaLocation.getHostname()) + ":" + master.getRegionServerInfoPort(metaLocation);
                  if (sl != null) {
                    Map<byte[], RegionMetrics> map = sl.getRegionMetrics();
                    if (map.containsKey(meta.getRegionName())) {
                      RegionMetrics load = map.get(meta.getRegionName());
                      readReq = String.format("%,1d", load.getReadRequestCount());
                      writeReq = String.format("%,1d", load.getWriteRequestCount());
                      double rSize = load.getStoreFileSize().get(Size.Unit.BYTE);
                      if (rSize > 0) {
                      fileSize = StringUtils.byteDesc((long) rSize);
                      }
                      fileCount = String.format("%,1d", load.getStoreFileCount());
                      double mSize = load.getMemStoreSize().get(Size.Unit.BYTE);
                      if (mSize > 0) {
                      memSize = StringUtils.byteDesc((long)mSize);
                      }
                      locality = load.getDataLocality();
                    }
                  }
                }
              %>
            <tr>
              <td><%= escapeXml(meta.getRegionNameAsString()) %></td>
              <td><a href="http://<%= hostAndPort %>/rs-status/"><%= StringEscapeUtils.escapeHtml4(hostAndPort) %></a></td>
              <td><%= readReq%></td>
              <td><%= writeReq%></td>
              <td><%= fileSize%></td>
              <td><%= fileCount%></td>
              <td><%= memSize%></td>
              <td><%= locality%></td>
              <td><%= escapeXml(Bytes.toString(meta.getStartKey())) %></td>
              <td><%= escapeXml(Bytes.toString(meta.getEndKey())) %></td>
          <%
                if (withReplica) {
          %>
              <td><%= meta.getReplicaId() %></td>
          <%
                }
          %>
            </tr>
          <%  } %>
          <%} %>
          </tbody>
        </table>
      </div>
      <div class="tab-pane" id="metaTab_compactStats">
        <table id="metaTableCompactStatsTable" class="tablesorter table table-striped">
          <thead>
            <tr>
              <th>Name</th>
              <th>Region Server</th>
              <th>Num. Compacting Cells</th>
              <th>Num. Compacted Cells</th>
              <th>Remaining Cells</th>
              <th>Compaction Progress</th>
            </tr>
          </thead>
          <tbody>
          <%
            // NOTE: Presumes meta with one or more replicas
            for (int j = 0; j < numMetaReplicas; j++) {
              RegionInfo meta = RegionReplicaUtil.getRegionInfoForReplica(
                                      RegionInfoBuilder.FIRST_META_REGIONINFO, j);
              ServerName metaLocation = MetaTableLocator.waitMetaRegionLocation(master.getZooKeeper(), j, 1);
              for (int i = 0; i < 1; i++) {
                String hostAndPort = "";
                long compactingCells = 0;
                long compactedCells = 0;
                String compactionProgress = "";
  
                if (metaLocation != null) {
                  ServerMetrics sl = master.getServerManager().getLoad(metaLocation);
                  hostAndPort = URLEncoder.encode(metaLocation.getHostname()) + ":" + master.getRegionServerInfoPort(metaLocation);
                  if (sl != null) {
                    Map<byte[], RegionMetrics> map = sl.getRegionMetrics();
                    if (map.containsKey(meta.getRegionName())) {
                      RegionMetrics load = map.get(meta.getRegionName());
                      compactingCells = load.getCompactingCellCount();
                      compactedCells = load.getCompactedCellCount();
                      if (compactingCells > 0) {
                        compactionProgress = String.format("%.2f", 100 * ((float)
                          compactedCells / compactingCells)) + "%";
                      }
                    }
                  }
                }
          %>
            <tr>
              <td><%= escapeXml(meta.getRegionNameAsString()) %></td>
              <td><a href="http://<%= hostAndPort %>/rs-status/"><%= StringEscapeUtils.escapeHtml4(hostAndPort) %></a></td>
              <td><%= String.format("%,1d", compactingCells)%></td>
              <td><%= String.format("%,1d", compactedCells)%></td>
              <td><%= String.format("%,1d", compactingCells - compactedCells)%></td>
              <td><%= compactionProgress%></td>
            </tr>
          <%  } %>
          <%} %>
          </tbody>
        </table>
      </div>
    </div>
  </div>
  <%} else {
    RegionStates states = master.getAssignmentManager().getRegionStates();
    Map<RegionState.State, List<RegionInfo>> regionStates = states.getRegionByStateOfTable(table.getName());
  