Skip to content

HBASE-30094 Reset TestRollbackSCP state before reruns - #8574

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30094-reset-flaky-test-rerun-state
Open

HBASE-30094 Reset TestRollbackSCP state before reruns#8574
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30094-reset-flaky-test-rerun-state

Conversation

@Sigma-Ma

Copy link
Copy Markdown
Contributor

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?

mvn -pl hbase-server -am -PrunLargeTests \
  -Dtest=TestRollbackSCP \
  -Dsurefire.rerunFailingTestsCount=2 \
  -Dwarbucks.skip=true \
  clean test

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