You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "guluo (Jira)" <ji...@apache.org> on 2023/06/07 15:42:00 UTC

[jira] [Created] (HBASE-27920) Skipping compact for this region if the table disable compaction

guluo created HBASE-27920:
-----------------------------

             Summary: Skipping compact for this region if the table disable compaction
                 Key: HBASE-27920
                 URL: https://issues.apache.org/jira/browse/HBASE-27920
             Project: HBase
          Issue Type: Improvement
          Components: Compaction
    Affects Versions: 2.4.13, 2.3.7
         Environment: HBase 2.3.7
            Reporter: guluo


CompactionChecker.chore() is called periodically for compacting. as follow:
{code:java}
//代码占位符
protected void chore() {
    for (Region r : this.instance.onlineRegions.values()) {
        // Skip compaction if region is read only
        if (r == null || r.isReadOnly()) {
            continue;
        }


        HRegion hr = (HRegion) r;
        for (HStore s : hr.stores.values()) {
            // ...
        }
    }
} {code}
Just skip compact for the region if table disable compaction.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)