You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2023/07/06 02:32:00 UTC
[jira] [Resolved] (HBASE-27920) Skipping compact for this region if the table disable compaction
[ https://issues.apache.org/jira/browse/HBASE-27920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Duo Zhang resolved HBASE-27920.
-------------------------------
Fix Version/s: 2.6.0
2.4.18
2.5.6
3.0.0-beta-1
Hadoop Flags: Reviewed
Resolution: Fixed
Pushed to branch-2.4+.
Thanks [~guluo] for contributing!
> 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.3.7, 2.4.13
> Environment: HBase 2.3.7
> Reporter: guluo
> Assignee: guluo
> Priority: Major
> Fix For: 2.6.0, 2.4.18, 2.5.6, 3.0.0-beta-1
>
>
> 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)