You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "PoAn Yang (Jira)" <ji...@apache.org> on 2024/07/18 14:06:00 UTC

[jira] [Created] (KAFKA-17159) Make sure kafka-cluster-test-kit-executor get down when closing KafkaClusterTestKit

PoAn Yang created KAFKA-17159:
---------------------------------

             Summary: 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


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)