HBASE-17991 Add more details about compaction queue on /dump (Guangxu Cheng)
This commit is contained in:
parent
2de6b051f6
commit
52119200bc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue