hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15381) Implement a distributed MOB compaction by procedure
Date Wed, 20 Apr 2016 22:35:25 GMT

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

Ted Yu commented on HBASE-15381:

+ */
+public class MasterMobCompactionManager extends MasterProcedureManager implements Stoppable
Add annotation for audience.
+  private static final String MOB_COMPACTION_TIMEOUT_MILLIS_KEY =
+    "hbase.mob.compaction.master.timeoutMillis";
Looking at other configs, the key should be named hbase.master.mob.compaction.timeoutMillis
Same with hbase.mob.compaction.master.wakeMillis config name.
+  private Map<TableName, Map<String, Pair<Boolean, List<String>>>>
compactingRegions =
Please add comment for what the String and Boolean mean.
+  private HMaster master;
Can we narrow the type so that HMaster is not referenced directly ?
+    Configuration copyOfConf = new Configuration(conf);
+    copyOfConf.setBoolean(CacheConfig.CACHE_DATA_ON_READ_KEY, Boolean.FALSE);
Maybe check the value for CacheConfig.CACHE_DATA_ON_READ_KEY . If it is false already, there
is no need to copy.
+  public void updateAsMajorCompaction(TableName tableName, String serverName) {
+    regions.setFirst(Boolean.TRUE);
Consider using an eum in place of the boolean - it would make the code more readable.

> Implement a distributed MOB compaction by procedure
> ---------------------------------------------------
>                 Key: HBASE-15381
>                 URL: https://issues.apache.org/jira/browse/HBASE-15381
>             Project: HBase
>          Issue Type: Improvement
>          Components: mob
>            Reporter: Jingcheng Du
>            Assignee: Jingcheng Du
>         Attachments: HBASE-15381.patch, mob distributed compaction design-v2.pdf, mob
distributed compaction design.pdf
> In MOB, there is a periodical compaction which runs in HMaster (It can be disabled by
configuration), some small mob files are merged into bigger ones. Now the compaction only
runs in HMaster which is not efficient and might impact the running of HMaster. In this JIRA,
a distributed MOB compaction is introduced, it is triggered by HMaster, but all the compaction
jobs are distributed to HRegionServers.

This message was sent by Atlassian JIRA

View raw message