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

This commit is contained in:
tedyu 2017-05-04 08:24:58 -07:00
parent 2de6b051f6
commit 52119200bc
1 changed files with 4 additions and 1 deletions

View File

@ -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) {