hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject hbase git commit: HBASE-16657 Expose per-region last major compaction time in RegionServer UI
Date Fri, 07 Oct 2016 17:04:40 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 62bc09012 -> bc9a97245


HBASE-16657 Expose per-region last major compaction time in RegionServer UI

Signed-off-by: Gary Helmling <garyh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bc9a9724
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bc9a9724
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bc9a9724

Branch: refs/heads/master
Commit: bc9a972451b2899dec1921bc34e86945df304547
Parents: 62bc090
Author: Dustin Pho <pho@fb.com>
Authored: Sat Sep 24 17:53:55 2016 -0700
Committer: Gary Helmling <garyh@apache.org>
Committed: Fri Oct 7 09:49:24 2016 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon     | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/bc9a9724/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
index ab45799..b393137 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
@@ -22,6 +22,7 @@
 </%args>
 <%import>
         java.util.*;
+        org.apache.commons.lang.time.FastDateFormat;
         org.apache.hadoop.hbase.regionserver.HRegionServer;
         org.apache.hadoop.hbase.util.Bytes;
         org.apache.hadoop.hbase.HRegionInfo;
@@ -197,6 +198,7 @@
             <th>Num. Compacting KVs</th>
             <th>Num. Compacted KVs</th>
             <th>Compaction Progress</th>
+            <th>Last Major Compaction</th>
         </tr>
 
         <%for HRegionInfo r: onlineRegions %>
@@ -211,12 +213,19 @@
             }
             String displayName = HRegionInfo.getRegionNameAsStringForDisplay(r,
               regionServer.getConfiguration());
+            long lastMajorCompactionTs = load.getLastMajorCompactionTs();
+            String compactTime = "";
+            if (lastMajorCompactionTs > 0) {
+              FastDateFormat fdf = FastDateFormat.getInstance("yyyy-MM-dd HH:mm ZZ");
+              compactTime = fdf.format(lastMajorCompactionTs);
+            }
         </%java>
             <td><a href="region.jsp?name=<% r.getEncodedName() %>"><%
displayName %></a></td>
             <%if load != null %>
             <td><% load.getTotalCompactingKVs() %></td>
             <td><% load.getCurrentCompactedKVs() %></td>
             <td><% percentDone %></td>
+            <td><% compactTime %></td>
             </%if>
         </tr>
         </%for>


Mime
View raw message