Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
`ClusterTestExtensions` should implement `BeforeAllCallback` and `AfterAllCallback` by `TestUtils.verifyNoUnexpectedThreads`
We can leverage `BeforeEachCallback`/`AfterEachCallback` to implement new AfterEachCallback instead of `verifyNoUnexpectedThreads`. Notice the new thread detection should avoid cascading failure - the thread leak should make specific test case (rather than all subsequent test cases) fail
`ClusterTestExtensions` should implement `BeforeAllCallback` and `AfterAllCallback` to check the thread leak for each "test case"
Attachments
Issue Links
- is related to
-
KAFKA-16072 Create Junit 5 extension to detect thread leak
- Open
- relates to
-
KAFKA-17151 Remove waitForCondition when detecting thread leak
- Resolved
- links to