Skip to content

HBASE-30096 Fix flaky TestHRegion tests - #8577

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30096-fix-flaky-testhregion-and-testhregionwithinmemoryflush
Open

HBASE-30096 Fix flaky TestHRegion tests#8577
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-30096-fix-flaky-testhregion-and-testhregionwithinmemoryflush

Conversation

@Sigma-Ma

Copy link
Copy Markdown
Contributor

JIRA: https://issues.apache.org/jira/browse/HBASE-30096

What changes were proposed in this pull request?

Stop and join the background threads started by the affected TestHRegion tests in finally blocks. Worker loops now honor interruption, and cleanup uses bounded joins. TestHRegionWithInMemoryFlush inherits the same cleanup.

Why are the changes needed?

A timed-out or failed test could leave background threads running after the region and test directory were closed. These threads could interfere with later tests and cause intermittent filesystem or region-closing failures.

How was this patch tested?

mvn -pl hbase-server -am \
  -PrunVerySlowRegionServerTests \
  -Dtest='TestHRegion,TestHRegionWithInMemoryFlush' \
  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