hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7516) Make compaction policy pluggable
Date Mon, 21 Jan 2013 19:08:13 GMT

    [ https://issues.apache.org/jira/browse/HBASE-7516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558992#comment-13558992

Sergey Shelukhin commented on HBASE-7516:

I took a cursory look; this patch makes compactor also pluggable and makes it return multiple
files, and moves the default compaction policy stuff off the base class.
If compactionPolicy returns, I wonder if (while Compactor is separate for reuse) it makes
sense to make compactionPolicy interface simpler, and just let it compact. E.g. if Store has
no default selection stuff anymore it doesn't make sense for it to get selection and feed
it into compactor, right?
Then, does it make sense to change CP interface to be called for all files post compaction
instead of one file? I am not sure what use-cases it has, but there's no way to tell apart
different compaction algorithms.

My main concern is that this patch does not allow us to implement level compaction as described
(see txt in level compaction issue). We can implement different algos which will allow for
gradual compaction at the cost of IO, but not level algorithm, because that will remove the
file ordering by seqNum, break the heuristic for determining mid-point for split, and other

> Make compaction policy pluggable
> --------------------------------
>                 Key: HBASE-7516
>                 URL: https://issues.apache.org/jira/browse/HBASE-7516
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Jimmy Xiang
>            Assignee: Sergey Shelukhin
>         Attachments: HBASE-7516-v0.patch, HBASE-7516-v1.patch, HBASE-7516-v2.patch, trunk-7516.patch
> Currently, the compaction selection is pluggable. It will be great to make the compaction
algorithm pluggable too so that we can implement and play with other compaction algorithms.

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

View raw message