[
https://issues.apache.org/jira/browse/HBASE-21224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16661126#comment-16661126
]
Xu Cang commented on HBASE-21224:
---------------------------------
Thanks [~allan163]
Fixed the formatting issue and typo.
Right, ThreadPoolExecutor is a queue essentially. It does not have O(1)
removing or lookup method. Even it does, maintaining a hashmap isn't helpful in
my opinion, because it's inefficient and hard to keep the Map and Queue in
sync. (For example, when one item is consumed from ThreadPoolExecutor, we want
to remove the corresponding entry in HashMap too.)
> 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
> Attachments: HBASE-21224-master.001.patch,
> HBASE-21224-master.002.patch, HBASE-21224-master.003.patch
>
>
> 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)