Sigma-Ma opened a new pull request, #8576:
URL: https://github.com/apache/hbase/pull/8576

   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?**
   
   ```bash
   - `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`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to