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

   ## What changes were proposed in this pull request?
   
   Backport of #8789 to branch-2, adapted to HBaseTestingUtility.
   Skip the JAR contents check when the class is loaded from a directory. Keep 
all existing assertions when it is loaded from a JAR.
   
   ## Why are the changes needed?
   
   During clean test, HBaseTestingUtility is loaded from 
hbase-server/target/test-classes. Opening this directory with JarFile causes a 
FileNotFoundException.
   The master patch needs adaptation because branch-2 uses HBaseTestingUtility 
instead of HBaseTestingUtil.
   
   How was this patch tested?
   
   ```bash
   mvn -B -ntp -pl hbase-shaded/hbase-shaded-testing-util-tester -am 
-Dtest=TestShadedTestingUtilJarContents,TestShadedHBaseTestingUtility 
-Dsurefire.firstPartGroups=org.apache.hadoop.hbase.testclassification.SmallTests,org.apache.hadoop.hbase.testclassification.MediumTests
 -Dsurefire.skipSecondPart=true -Dsurefire.rerunFailingTestsCount=0 clean test
   
   mvn -B -ntp -pl hbase-shaded/hbase-shaded-testing-util-tester -am 
-Dtest=TestShadedTestingUtilJarContents,TestShadedHBaseTestingUtility 
-Dsurefire.firstPartGroups=org.apache.hadoop.hbase.testclassification.SmallTests,org.apache.hadoop.hbase.testclassification.MediumTests
 -Dsurefire.skipSecondPart=true -Dsurefire.rerunFailingTestsCount=0 package
   
   mvn-B -ntp -pl hbase-shaded/hbase-shaded-testing-util-tester 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