[ https://issues.apache.org/jira/browse/HBASE-7672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13563031#comment-13563031 ]
Andrew Purtell commented on HBASE-7672: --------------------------------------- I tried something similar once that instead changed the compaction request comparator to only consider region and priority. It worked, but the large compaction queues were a symptom of a problem not the problem itself. Decided to tackle the problem instead. > Merging compaction requests in the queue for same store > ------------------------------------------------------- > > Key: HBASE-7672 > URL: https://issues.apache.org/jira/browse/HBASE-7672 > Project: HBase > Issue Type: Improvement > Components: Compaction > Affects Versions: 0.94.4 > Reporter: chunhui shen > Assignee: chunhui shen > Fix For: 0.96.0 > > Attachments: HBASE-7672.patch > > > With a high write presesure, we could found many compaction requests for same > store in the compaction queue. > I think we could merge compaction requests for same store to increase > compaction efficiency greately. It is so in 0.90 version because doing > compacting files selection only when executing compaction > e.g. > {code} > SmallCompation active count:1,Queue: > regionName=abctest,90F9AUIPK4YO47W55WS4R8RSKGDFNRYBNB79COYKHNQD9F62G7,1359104485823.f05568c159940b8a72bd84c988388ad3., > storeName=c1, fileCount=4, fileSize=371.1m (212.0m, 53.0m, 53.0m, 53.0m), > priority=15, time=56843340270506608 > regionName=abctest,90F9AUIPK4YO47W55WS4R8RSKGDFNRYBNB79COYKHNQD9F62G7,1359104485823.f05568c159940b8a72bd84c988388ad3., > storeName=c1, fileCount=4, fileSize=330.4m (171.3m, 53.0m, 53.0m, 53.0m), > priority=11, time=56843401092063608 > {code} > We could merge these two compaction requests -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira