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)

Reply via email to