Skip to content

HBASE-29809 Unify region reopening methods to use throttled implement…#7818

Open
liuxiaocs7 wants to merge 3 commits intoapache:masterfrom
liuxiaocs7:HBASE-29809
Open

HBASE-29809 Unify region reopening methods to use throttled implement…#7818
liuxiaocs7 wants to merge 3 commits intoapache:masterfrom
liuxiaocs7:HBASE-29809

Conversation

@liuxiaocs7
Copy link
Contributor

…ation

@liuxiaocs7
Copy link
Contributor Author

Hi, @ajkh88 and @charlesconnell, could you help take a look when free, thanks!

/**
* Create a new ReopenTableRegionsProcedure respecting the throttling configuration for the table.
* First check the table descriptor, then fall back to the global configuration. Only used in
* ModifyTableProcedure and in {@link HMaster#reopenRegionsThrottled}.
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure about this javadoc change? This looks wrong. I think to make the link work property there need to be args, like {@link HMaster#reopenRegionsThrottled(TableName, ...}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review, yes, these modifications are unnecessary and can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image image

try {
LOG.warn("Reopening regions due to high storeFileRefCount. "
+ "TableName: {} , noOfRegions: {}", tableName, regionNames.size());
hMaster.reopenRegions(tableName, regionNames, NONCE_GENERATOR.getNonceGroup(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't really comment on whether it's a good idea to throttle these reopens since I don't have enough context on this code path.

Copy link
Contributor Author

@liuxiaocs7 liuxiaocs7 Mar 2, 2026

Choose a reason for hiding this comment

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

Hi, @charlesconnell, thanks for your comments, RegionsRecoveryChore used to reopen region whose maxCompactedStoreFileRefCount metric large than the configured storeFileRefCountThreshold, if throttle feature is enabled, we can avoid reopen them at the same time. At the same time, the default behavior will remain consistent with previous

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.

2 participants