hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [1/2] hbase git commit: HBASE-16657 Expose per-region last major compaction time in RegionServer UI
Date Fri, 07 Oct 2016 21:29:04 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 a52188f97 -> 0704aed44


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/b32e7ced
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b32e7ced
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b32e7ced

Branch: refs/heads/branch-1.3
Commit: b32e7ced261e7bb9164ed2094407dd084e0715f9
Parents: a52188f
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 14:20:19 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/b32e7ced/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 b058245..4c35cf4 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;
@@ -191,6 +192,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 %>
@@ -203,6 +205,12 @@
             percentDone = String.format("%.2f", 100 *
             ((float) load.getCurrentCompactedKVs() / load.getTotalCompactingKVs())) + "%";
             }
+            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() %>">
               <% r.getRegionNameAsString() %></a>
@@ -211,6 +219,7 @@
             <td><% load.getTotalCompactingKVs() %></td>
             <td><% load.getCurrentCompactedKVs() %></td>
             <td><% percentDone %></td>
+            <td><% compactTime %></td>
             </%if>
         </tr>
         </%for>


Mime
View raw message