hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-17991 Add more details about compaction queue on /dump (Guangxu Cheng)
Date Thu, 04 May 2017 15:24:47 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 2de6b051f -> 52119200b


HBASE-17991 Add more details about compaction queue on /dump (Guangxu Cheng)


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

Branch: refs/heads/master
Commit: 52119200bcfcc9b449c829c5e1b7e30afdb87be7
Parents: 2de6b05
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu May 4 08:24:58 2017 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu May 4 08:24:58 2017 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/regionserver/CompactSplitThread.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/52119200/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplitThread.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplitThread.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplitThread.java
index cddfccb..5356ee1 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplitThread.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactSplitThread.java
@@ -420,6 +420,7 @@ public class CompactSplitThread implements CompactionRequestor, PropagatingConfi
     private int queuedPriority;
     private ThreadPoolExecutor parent;
     private User user;
+    private long time;
 
     public CompactionRunner(Store store, Region region,
         CompactionContext compaction, ThreadPoolExecutor parent, User user) {
@@ -431,12 +432,14 @@ public class CompactSplitThread implements CompactionRequestor, PropagatingConfi
           ? store.getCompactPriority() : compaction.getRequest().getPriority();
       this.parent = parent;
       this.user = user;
+      this.time =  System.currentTimeMillis();
     }
 
     @Override
     public String toString() {
       return (this.compaction != null) ? ("Request = " + compaction.getRequest())
-          : ("Store = " + store.toString() + ", pri = " + queuedPriority);
+          : ("regionName = " + region.toString() + ", storeName = " + store.toString() +
+             ", priority = " + queuedPriority + ", time = " + time);
     }
 
     private void doCompaction(User user) {


Mime
View raw message