Skip to content

HBASE-30169 Split completed parent region added to RIT list on host RS and master crash#8350

Open
Umeshkumar9414 wants to merge 5 commits into
apache:branch-2from
Umeshkumar9414:HBASE-30169_branch-2
Open

HBASE-30169 Split completed parent region added to RIT list on host RS and master crash#8350
Umeshkumar9414 wants to merge 5 commits into
apache:branch-2from
Umeshkumar9414:HBASE-30169_branch-2

Conversation

@Umeshkumar9414

Copy link
Copy Markdown
Contributor

Bug: When a host RegionServer and master crashes, regionCrashed() blindly added all hosted regions to RIT, including split-completed parent regions that should never be reassigned.

Fix: Added isSplitOrMerged() guard in regionCrashed() to skip split/merged regions. Extracted isSplitOrMerged() and isReplica() helpers to reduce duplication with handleRegionStateNodeOperation().

  • Removed broken isRegionInTransition(RegionInfo) API — RegionInfo.COMPARATOR considers offline/split flags, so lookups failed when those flags differed between the query and stored instance. Replaced
    with encoded-name-based lookup in test utility.
  • Added test testRITWithSplitTableRegion — splits a region, crashes the hosting RS, restarts the master, and verifies the split parent is NOT in the RIT list.

@liuxiaocs7 liuxiaocs7 added the backport This PR is a back port of some issue or issues already committed to master label Jun 13, 2026
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