Skip to content

HBASE-27127 Should use FileStatus to archive expired MOB files instea… - #8721

Open
liuxiaocs7 wants to merge 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-27127-v3
Open

liuxiaocs7 wants to merge 1 commit into
apache:masterfrom
liuxiaocs7:HBASE-27127-v3

Conversation

@liuxiaocs7

@liuxiaocs7 liuxiaocs7 commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

…d of construct HStoreFile object

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The implementation fulfills the stated optimization while preserving validation and covering key archival behaviors.

Review effort: Balanced
Findings: None

What changed in this PR

Reworks expired MOB cleanup to archive listed FileStatus objects directly, avoiding unnecessary HStoreFile construction and metadata reads.

Changes:

  • Adds FileStatus-based archiving.
  • Updates MOB cleanup and cleaner integration.
  • Adds unit and integration coverage for validation, conflicts, retries, and archival.
File Description
HFileArchiver.java Adds status-based archive API.
MobUtils.java Archives expired MOB statuses directly.
ExpiredMobFileCleaner.java Removes obsolete cache configuration.
TestHFileArchiverFileStatuses.java Tests the new archive API.
TestMobUtils.java Tests filtering and direct status use.
TestExpiredMobFileCleaner.java Verifies expired files are archived.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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