Skip to content

HBASE-30241 TestMobCloneSnapshotFromClientAfterSplittingRegion is fla…#8414

Open
liuxiaocs7 wants to merge 2 commits into
apache:branch-2from
liuxiaocs7:HBASE-30241-branch-2
Open

HBASE-30241 TestMobCloneSnapshotFromClientAfterSplittingRegion is fla…#8414
liuxiaocs7 wants to merge 2 commits into
apache:branch-2from
liuxiaocs7:HBASE-30241-branch-2

Conversation

@liuxiaocs7

Copy link
Copy Markdown
Member

…… (#8387)

apache#8387)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@liuxiaocs7 liuxiaocs7 requested a review from Copilot June 25, 2026 07:51
@liuxiaocs7 liuxiaocs7 added the backport This PR is a back port of some issue or issues already committed to master label Jun 25, 2026

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.

Pull request overview

This PR addresses HBASE-30241 test flakiness around clone-snapshot behavior after region splits by making the “Reference-file” split case deterministic and adding coverage for the complementary “all HFileLink” split case (including a MOB variant).

Changes:

  • Make CloneSnapshotFromClientAfterSplittingRegionTestBase#splitRegion deterministic by major-compacting before splitting to ensure reference files are created.
  • Refactor CloneSnapshotFromClientTestBase setup to allow subclasses to customize snapshot naming and table/snapshot creation via overridable hooks.
  • Add a new “with links” split test base plus concrete test classes (regular + MOB) that validate clone survivability when the split produces only whole-file HFileLinks.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientAfterSplittingRegionWithLinks.java Adds MOB variant of the new “all HFileLink” split/clone survivability test (currently has a compile-blocking type/import issue).
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientAfterSplittingRegionWithLinks.java Adds non-MOB concrete test class wiring for the new “all HFileLink” split/clone test base.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/CloneSnapshotFromClientTestBase.java Refactors setup to call initSnapshotNames and createTableAndSnapshots separately; makes createTableAndSnapshots overridable.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/CloneSnapshotFromClientAfterSplittingRegionWithLinksTestBase.java Introduces a new base test verifying clone survives source+snapshot deletion when split produces whole-file HFileLinks (no References).
hbase-server/src/test/java/org/apache/hadoop/hbase/client/CloneSnapshotFromClientAfterSplittingRegionTestBase.java Forces reference-file split behavior by major-compacting table regions before choosing the split row.

💡 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

backport This PR is a back port of some issue or issues already committed to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants