Skip to content

HBASE-30287 Filter offline and split regions from SnapshotRegionLocator - #8576

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30287-filter-offline-and-split-regions
Open

HBASE-30287 Filter offline and split regions from SnapshotRegionLocator#8576
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30287-filter-offline-and-split-regions

Conversation

@Sigma-Ma

@Sigma-Ma Sigma-Ma commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

JIRA: https://issues.apache.org/jira/browse/HBASE-30287

What changes were proposed in this pull request?

Filter offline and split entries while building SnapshotRegionLocator. This also adds a regression test with active, offline, and split entries that share start keys, and verifies region listing, start keys, and row lookup.

Why are the changes needed?

Snapshot manifests can retain split parents. SnapshotRegionLocator previously exposed those entries alongside active daughter regions. This could make HFileOutputFormat2 configure more reducers than the number of unique keys written to the partition file, causing incremental backup to fail with Wrong number of partitions in keyset.

Filtering inactive entries in the locator keeps its region view consistent for all callers.

How was this patch tested?

mvn -pl hbase-server -am \
  -Dtest=TestSnapshotRegionLocator \
  -Dsurefire.failIfNoSpecifiedTests=false \
  test

mvn -pl hbase-backup -am \
  -Dtest=TestIncrementalBackupRestoreWithOriginalSplits \
  -Dsurefire.failIfNoSpecifiedTests=false \
  -PrunLargeTests \
  test

mvn -pl hbase-server spotless:check

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