[ 
https://issues.apache.org/jira/browse/KAFKA-16791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chia-Ping Tsai updated KAFKA-16791:
-----------------------------------
    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"

  was:
-`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


> Add thread detection to 
> RaftClusterInvocationContext/ZkClusterInvocationContext
> -------------------------------------------------------------------------------
>
>                 Key: KAFKA-16791
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16791
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: PoAn Yang
>            Priority: Minor
>
> -`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"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to