Skip to content

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

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

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

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
@virajjasani

Copy link
Copy Markdown
Contributor

TestRegionMover2 failures are relevant?

@Umeshkumar9414 Umeshkumar9414 force-pushed the HBASE-30169_branch-2.5 branch from 35921eb to 97c29a9 Compare June 15, 2026 12:40
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.

3 participants