Skip to content

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

Open
Umeshkumar9414 wants to merge 3 commits into
apache:masterfrom
Umeshkumar9414:HBASE-30169
Open

HBASE-30169 Split completed parent region added to RIT list on host RS and master crash#8264
Umeshkumar9414 wants to merge 3 commits into
apache:masterfrom
Umeshkumar9414:HBASE-30169

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.

@virajjasani virajjasani self-requested a review May 22, 2026 06:03
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.

1 participant