Skip to content

HBASE-30353: Prevent split parent regions from being re-opened - #8849

Draft
tanyastickles wants to merge 2 commits into
apache:branch-2from
tanyastickles:HBASE-30353-branch-2
Draft

tanyastickles wants to merge 2 commits into
apache:branch-2from
tanyastickles:HBASE-30353-branch-2

Conversation

@tanyastickles

@tanyastickles tanyastickles commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Issue: https://issues.apache.org/jira/browse/HBASE-30353
This change has already been merged in master. We are backporting the changes onto branch-2.

From the original PR:
We ran into an issue where a split parent region came back online.

What happened was:

  • The region split successfully.
  • There was an HMaster failover.
  • When the new HMaster was constructing its in memory data from the meta, it sees state=CLOSED, split=true, offline=true. (The in-memory state of the previous HMaster would have had state=SPLIT)
  • This ends up looking like an ordinary region stuck in closing rather than a split region.

Co-authored-by: Tanya Stickles <tstickles@hubspot.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off by: Charles Connell <cconnell@apache.org>
Signed-off by: Wellington Ramos Chevreuil <wchevreuil@apache.org>

(cherry picked from commit 71a127e)

Backport adjustments for branch-2: the SPLIT state is written in
MetaTableAccessor.splitRegion (RegionStateStore delegates to it here), and
the tests are adapted to branch-2 APIs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@liuxiaocs7 liuxiaocs7 added the backport This PR is a back port of some issue or issues already committed to master label Nov 6, 2026
testRITWithSplitTableRegion expires a region server and restarts the
master. The next test's setup() then walked the live region server threads
and called getCompactSplitThread() on each, but a server that is still
shutting down has already nulled its CompactSplit thread, causing an NPE in
@beforeeach. Persisting SPLIT for the split parent made this fail in 3 of 4
runs on branch-2; skip stopped servers instead.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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