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

   JIRA: https://issues.apache.org/jira/browse/HBASE-30094
   
   **What changes were proposed in this pull request?**
   
   Reset the static fault-injection guard and the procedure executor's rollback 
kill/toggle flags in `TestRollbackSCP#setUp` before every test attempt.
   
   **Why are the changes needed?**
   
   Surefire reruns failed test methods in the same JVM without invoking 
`@BeforeAll` again. State left by the first attempt can therefore prevent fault 
injection on the retry and cause the test to time out while waiting for the 
procedure executor to stop.
   
   Resetting both states in `@BeforeEach` makes every attempt independent.
   
   **How was this patch tested?**
   
   ```bash
   mvn -pl hbase-server -am -PrunLargeTests \
     -Dtest=TestRollbackSCP \
     -Dsurefire.rerunFailingTestsCount=2 \
     -Dwarbucks.skip=true \
     clean 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