Skip to content

HBASE-30055 Correct the configuration in MobFileCompactionChore log#8023

Merged
liuxiaocs7 merged 2 commits intoapache:masterfrom
liuxiaocs7:HBASE-30055
Apr 5, 2026
Merged

HBASE-30055 Correct the configuration in MobFileCompactionChore log#8023
liuxiaocs7 merged 2 commits intoapache:masterfrom
liuxiaocs7:HBASE-30055

Conversation

@liuxiaocs7
Copy link
Copy Markdown
Member

+ " all regions will be compacted in parallel",
htd.getTableName(), hcd.getNameAsString(), "hbase.mob.compaction.batch.size");
htd.getTableName(), hcd.getNameAsString(),
MobConstants.MOB_MAJOR_COMPACTION_REGION_BATCH_SIZE);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.regionBatchSize =
  master.getConfiguration().getInt(MobConstants.MOB_MAJOR_COMPACTION_REGION_BATCH_SIZE,
    MobConstants.DEFAULT_MOB_MAJOR_COMPACTION_REGION_BATCH_SIZE);

we use hbase.mob.major.compaction.region.batch.size rather than hbase.mob.compaction.batch.size here

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses HBASE-30055 by correcting the configuration key shown in MobFileCompactionChore log messages so operators see the actual setting that controls MOB major compaction batching.

Changes:

  • Replace the incorrect hardcoded config key in logs with MobConstants.MOB_MAJOR_COMPACTION_REGION_BATCH_SIZE.
  • Adjust the related INFO log message to print the config key and configured batch size consistently.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…CompactionChore.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@liuxiaocs7 liuxiaocs7 merged commit e057995 into apache:master Apr 5, 2026
10 of 13 checks passed
liuxiaocs7 added a commit that referenced this pull request Apr 5, 2026
…8023)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit e057995)
liuxiaocs7 added a commit that referenced this pull request Apr 5, 2026
…8023)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit e057995)
liuxiaocs7 added a commit that referenced this pull request Apr 5, 2026
…8023)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit e057995)
liuxiaocs7 added a commit that referenced this pull request Apr 5, 2026
…8023)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit e057995)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants