[ https://issues.apache.org/jira/browse/KAFKA-16920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gaurav Narula reassigned KAFKA-16920: ------------------------------------- Assignee: Gaurav Narula > Flaky test testControlledShutdown() - kafka.server.BrokerLifecycleManagerTest > ----------------------------------------------------------------------------- > > Key: KAFKA-16920 > URL: https://issues.apache.org/jira/browse/KAFKA-16920 > Project: Kafka > Issue Type: Test > Reporter: Igor Soarez > Assignee: Gaurav Narula > Priority: Minor > > Several tests failed in this pipeline because {{testControlledShutdown}} did > not clean up properly: > [https://ci-builds.apache.org/blue/organizations/jenkins/Kafka%2Fkafka-pr/detail/PR-16232/3/tests] > Stack trace > {code:java} > org.opentest4j.AssertionFailedError: Found 1 unexpected threads during > @BeforeAll: `controlled-shutdown-lifecycle-manager-event-handler` ==> > expected: <true> but was: <false> > at > org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) > at > org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) > at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63) > at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) > at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214) > at kafka.utils.TestUtils$.verifyNoUnexpectedThreads(TestUtils.scala:1917) > at kafka.server.QuorumTestHarness$.setUpClass(QuorumTestHarness.scala:489) > at kafka.server.QuorumTestHarness.setUpClass(QuorumTestHarness.scala) > {code} > Note that the thread name > {{controlled-shutdown-lifecycle-manager-event-handler}} originates from the > {{BrokerLifecycleManager}} instance created in > {{{}kafka.server.BrokerLifecycleManagerTest#testControlledShutdown{}}}. > > The test itself failed with the following stack trace: > {code:java} > org.opentest4j.AssertionFailedError: expected: <RUNNING> but was: <RECOVERY> > at > org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) > at > org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) > at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197) > at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182) > at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177) > at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145) > at > kafka.server.BrokerLifecycleManagerTest.$anonfun$testControlledShutdown$3(BrokerLifecycleManagerTest.scala:160) > at > kafka.server.BrokerLifecycleManagerTest.testControlledShutdown(BrokerLifecycleManagerTest.scala:157) > {code} > Regardless of the test failure, the {{BrokerLifecycleManger}} thread should > have been shutdown. -- This message was sent by Atlassian Jira (v8.20.10#820010)