[
https://issues.apache.org/jira/browse/HBASE-21224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16652760#comment-16652760
]
Xu Cang commented on HBASE-21224:
---------------------------------
We maintain short compactions in ThreadPoolExecutor. There is no efficient way
( O(1) ) to remove an element from ThreadPoolExecutor.
Also, to inspect the compactions in threadPoolExecutor we need to use
[{{getQueue()}}|https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html#getQueue()]
(allows access to the work queue for purposes of monitoring and debugging. Use
of this method for any other purpose is strongly discouraged) which is not a
good way to do it according to the doc.
If we really need this improvement, may need to think about another type of
data structures.
> Handle compaction queue duplication
> -----------------------------------
>
> Key: HBASE-21224
> URL: https://issues.apache.org/jira/browse/HBASE-21224
> Project: HBase
> Issue Type: Improvement
> Components: Compaction
> Reporter: Xu Cang
> Assignee: Xu Cang
> Priority: Minor
>
> Mentioned by [~allan163] that we may want to handle compaction queue
> duplication in this Jira https://issues.apache.org/jira/browse/HBASE-18451
> Creating this item for further assessment and discussion.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)