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

   JIRA: https://issues.apache.org/jira/browse/HBASE-30149
   
   ## What changes were proposed in this pull request?
   
   Fix MetaCellComparator to use the second row-key delimiters when determining 
whether a meta row contains the region-id section. Add regression coverage for 
range scans and PrefixFilter scans on hbase:meta.
   
   ## Why are the changes needed?
   After comparing the middle section, MetaCellComparator.compareRows rechecked 
the first delimiters instead of the second delimiters. This incorrectly ordered 
a partial key such as test, after test,,<regionId>, causing scans to skip the 
first region of a table.
   
   ## How was this patch tested?
   
   ```bash
   mvn -pl hbase-server -am -Dtest=TestMetaTableAccessor \
     -Dsurefire.failIfNoSpecifiedTests=false \
     -Dsurefire.rerunFailingTestsCount=0 test
   
   mvn -pl hbase-common -am -Dtest=TestKeyValue \
     -Dsurefire.failIfNoSpecifiedTests=false \
     -Dsurefire.rerunFailingTestsCount=0 test
   ```


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