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

Luke Chen resolved KAFKA-15427.
-------------------------------
    Resolution: Fixed

> Integration tests in TS test harness detect resource leaks
> ----------------------------------------------------------
>
>                 Key: KAFKA-15427
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15427
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Christo Lolov
>            Assignee: Christo Lolov
>            Priority: Blocker
>             Fix For: 3.6.0
>
>
> The pull request ([https://github.com/apache/kafka/pull/14116]) for adding 
> the Tiered Storage test harness uncovered resource leaks as part of the build 
> ([https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-14116/28/testReport/junit/org.apache.kafka.tiered.storage.integration/OffloadAndConsumeFromLeaderTest/Build___JDK_20_and_Scala_2_13___initializationError/)]
> This can be reproduced locally by running the following command:
> {code:java}
> ./gradlew --no-parallel --max-workers 1 -PmaxParallelForks=1 storage:test 
> --tests 
> org.apache.kafka.server.log.remote.storage.RemoteLogMetadataManagerTest 
> --tests 
> org.apache.kafka.tiered.storage.integration.OffloadAndConsumeFromLeaderTest 
> --rerun{code}
> Output:
> {code:java}
> > Task :storage:testGradle Test Run :storage:test > Gradle Test Executor 3 > 
> > RemoteLogMetadataManagerTest > 
> > testRemotePartitionDeletion(RemoteLogMetadataManager) > 
> > remoteLogMetadataManager = 
> > org.apache.kafka.server.log.remote.storage.InmemoryRemoteLogMetadataManager@4cc76301
> >  PASSED
> Gradle Test Run :storage:test > Gradle Test Executor 3 > 
> RemoteLogMetadataManagerTest > 
> testRemotePartitionDeletion(RemoteLogMetadataManager) > 
> remoteLogMetadataManager = 
> org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManagerWrapperWithHarness@2ca47471
>  PASSED
> Gradle Test Run :storage:test > Gradle Test Executor 3 > 
> RemoteLogMetadataManagerTest > testFetchSegments(RemoteLogMetadataManager) > 
> remoteLogMetadataManager = 
> org.apache.kafka.server.log.remote.storage.InmemoryRemoteLogMetadataManager@ce12fbb
>  PASSED
> Gradle Test Run :storage:test > Gradle Test Executor 3 > 
> RemoteLogMetadataManagerTest > testFetchSegments(RemoteLogMetadataManager) > 
> remoteLogMetadataManager = 
> org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManagerWrapperWithHarness@69aabcb0
>  PASSED
> org.apache.kafka.tiered.storage.integration.OffloadAndConsumeFromLeaderTest.initializationError
>  failed, log available in 
> /Users/lolovc/Documents/kafka/storage/build/reports/testOutput/org.apache.kafka.tiered.storage.integration.OffloadAndConsumeFromLeaderTest.initializationError.test.stdoutGradle
>  Test Run :storage:test > Gradle Test Executor 3 > 
> OffloadAndConsumeFromLeaderTest > initializationError FAILED
>     org.opentest4j.AssertionFailedError: Found 2 unexpected threads during 
> @BeforeAll: `controller-event-thread,Test worker-EventThread` ==> expected: 
> <true> but was: <false>
> ... {code}
> The point of this Jira ticket is to find the resource leak and fix it



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

Reply via email to