Skip to content

HBASE-30155 MobFileCleanerChore does not shut down its internal execu…#8222

Open
liuxiaocs7 wants to merge 2 commits into
apache:masterfrom
liuxiaocs7:HBASE-30155
Open

HBASE-30155 MobFileCleanerChore does not shut down its internal execu…#8222
liuxiaocs7 wants to merge 2 commits into
apache:masterfrom
liuxiaocs7:HBASE-30155

Conversation

@liuxiaocs7
Copy link
Copy Markdown
Member

@liuxiaocs7 liuxiaocs7 commented May 11, 2026

…tor on cleanup

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-30155 by ensuring MobFileCleanerChore releases its internally managed thread pool when the chore is shut down, preventing lingering executor threads during master cleanup/shutdown.

Changes:

  • Add a cleanup() override in MobFileCleanerChore to shut down the internal ThreadPoolExecutor.
  • Add a small JUnit test that verifies shutdown() transitions the internal executor to a shutdown state.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCleanerChore.java Ensure the chore’s internal executor is shut down during ScheduledChore.cleanup().
hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobFileCleanerChore.java Add a unit test to validate executor shutdown behavior on chore shutdown.

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

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