[ https://issues.apache.org/jira/browse/KAFKA-18770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925713#comment-17925713 ]
Chia-Ping Tsai commented on KAFKA-18770: ---------------------------------------- The root cause of the test failures lies in the failure to close the {{ReplicaManager}} within the {{testDelayedShareFetchPurgatoryOperationExpiration}} method. This omission results in an unreleased thread from the purgatory, leading to subsequent integration test failures due to thread leaks. > Fix flaky initializationError in ReplicationQuotasTest/RequestQuotaTest > (thread leak) > ------------------------------------------------------------------------------------- > > Key: KAFKA-18770 > URL: https://issues.apache.org/jira/browse/KAFKA-18770 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: Yu-Lin Chen > Assignee: Chia-Ping Tsai > Priority: Major > Labels: flaky-test > > An unexpected thread was detected in the recent CI. > * ReplicationQuotasTest#initializationError > * RequestQuotaTest#initializationError > {code:java} > org.opentest4j.AssertionFailedError: Found 1 unexpected threads during > @BeforeAll: executor-ShareFetch ==> expected: <true> but was: <false> {code} > Failed CI: > * [https://github.com/apache/kafka/actions/runs/13203924058] > * [https://github.com/apache/kafka/actions/runs/13237077533/job/36944376672] > -- This message was sent by Atlassian Jira (v8.20.10#820010)