[ https://issues.apache.org/jira/browse/KAFKA-17159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-17159. ------------------------------------ Fix Version/s: 3.9.0 Resolution: Fixed > Make sure kafka-cluster-test-kit-executor get down when closing > KafkaClusterTestKit > ----------------------------------------------------------------------------------- > > Key: KAFKA-17159 > URL: https://issues.apache.org/jira/browse/KAFKA-17159 > Project: Kafka > Issue Type: Sub-task > Reporter: PoAn Yang > Assignee: PoAn Yang > Priority: Minor > Fix For: 3.9.0 > > > When trying to remove `TestUtils.waitForCondition` in > [https://github.com/apache/kafka/pull/16499], kraft may have thread leak. > We can use ThreadUtils#shutdownExecutorServiceQuietly [0] to replace the > block in KafkaClusterTestKie#close [1]. > > [0] > [https://github.com/apache/kafka/blob/f595802cc752ed01dc74e9ab932209fe25a9d10b/clients/src/main/java/org/apache/kafka/common/utils/ThreadUtils.java#L71-L92] > [1] > [https://github.com/apache/kafka/blob/f595802cc752ed01dc74e9ab932209fe25a9d10b/core/src/test/java/kafka/testkit/KafkaClusterTestKit.java#L640-L643] -- This message was sent by Atlassian Jira (v8.20.10#820010)