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)