HBASE-30488 BucketCache persistence loses the archived flag of BlockC… by liuxiaocs7 · Pull Request #8799 · apache/hbase · GitHub
Skip to content

HBASE-30488 BucketCache persistence loses the archived flag of BlockC… - #8799

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

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

Conversation

@liuxiaocs7

Copy link
Copy Markdown
Member

…acheKey

@liuxiaocs7
liuxiaocs7 requested a balanced review from Copilot October 21, 2026 04:51

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.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

No open issues 🎉

What changed in this PR

Adds coverage and fixes for persisting/restoring the archived flag on BlockCacheKey during BucketCache persistence/recovery (HBASE-30488).

Changes:

  • Serialize BlockCacheKey.isArchived() into the BucketCache persistence protobuf.
  • Add a parameterized recovery test validating the archived flag survives restart and that region-cached accounting matches expectations.
File Description
hbase-server/​src/​main/​java/​org/​apache/​hadoop/​hbase/​io/​hfile/​bucket/​BucketProtoUtils.java Persists the archived flag into the protobuf representation of BlockCacheKey.
hbase-server/​src/​test/​java/​org/​apache/​hadoop/​hbase/​io/​hfile/​bucket/​TestRecoveryPersistentBucketCache.java Adds a parameterized test that verifies the archived flag is preserved across persistence/recovery and validates region cached info behavior.

Review effort: Lite

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