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

Ted Yu commented on HBASE-7055:
-------------------------------

Todd's reasoning is right.
CompactionConfiguration was created to hold compaction related parameters in 
memory.
This feature allows age-based and size-based compaction. The granularity is at 
column family level.
So there would be potentially many compaction parameters. e.g. take a look at 
TestTierCompactSelection.
Here is an excerpt:
{code}
+  public void testAgeBasedAssignment() throws IOException {
+
+    conf.setLong(strPrefix + strSchema + "Tier.0.MaxAgeInDisk", 10L);
+    conf.setLong(strPrefix + strSchema + "Tier.1.MaxAgeInDisk", 100L);
+    conf.setLong(strPrefix + strSchema + "Tier.2.MaxAgeInDisk", 1000L);
+    conf.setLong(strPrefix + strSchema + "Tier.0.MaxSize", Long.MAX_VALUE);
+    conf.setLong(strPrefix + strSchema + "Tier.1.MaxSize", Long.MAX_VALUE);
+    conf.setLong(strPrefix + strSchema + "Tier.2.MaxSize", Long.MAX_VALUE);
{code}
There're 3 dimensions here: tier number, age or size, column family.
                
> port HBASE-6371 tier-based compaction from 0.89-fb to trunk
> -----------------------------------------------------------
>
>                 Key: HBASE-7055
>                 URL: https://issues.apache.org/jira/browse/HBASE-7055
>             Project: HBase
>          Issue Type: Task
>          Components: Compaction
>    Affects Versions: 0.96.0
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6371-squashed.patch, HBASE-6371-v2-squashed.patch
>
>
> There's divergence in the code :(
> See HBASE-6371 for details.

--
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

Reply via email to