Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
The objective of this task is to create a Junit extension that will execute after every test and verify that there are no lingering threads left over.
An example of how to create an extension can be found here:
https://github.com/apache/kafka/pull/14783/files#diff-812cfc2780b6fc0e7a1648ff37912ff13aeda4189ea6b0d4d847b831f66e56d1
An example on how to find unexpected threads is at https://github.com/apache/kafka/blob/d5aa341a185f4df23bf587e55bcda4f16fc511f1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L2427 and also at https://issues.apache.org/jira/browse/KAFKA-16052?focusedCommentId=17800978&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17800978
Attachments
Issue Links
- is blocked by
-
KAFKA-16059 Fix leak of ExpirationReaper-1-AlterAcls threads in :core:test
- Resolved
-
KAFKA-16074 Fix thread leaks in ReplicaManagerTest
- Resolved
- is related to
-
KAFKA-15845 Add Junit5 test extension which detects leaked Kafka clients and servers
- In Progress
- relates to
-
KAFKA-16791 Add thread detection to ClusterTestExtensions
- Resolved
-
KAFKA-16776 Builds flaky-failing with leaked client-metrics-reaper thread
- Open
- links to