Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16776

Builds flaky-failing with leaked client-metrics-reaper thread

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.8.0
    • None
    • None

    Description

      I observed the assertion added by KAFKA-16477 failing in my build:

      https://ci-builds.apache.org/blue/organizations/jenkins/Kafka%2Fkafka-pr/detail/PR-15469/6/tests Reproduced here:

      Build / JDK 17 and Scala 2.13 / initializationError – org.apache.kafka.tools.TopicCommandIntegrationTest<1s
      Build / JDK 17 and Scala 2.13 / initializationError – org.apache.kafka.tools.consumer.group.AuthorizerIntegrationTest<1s
      Build / JDK 17 and Scala 2.13 / initializationError – org.apache.kafka.tools.consumer.group.DescribeConsumerGroupTest<1s
      Build / JDK 17 and Scala 2.13 / initializationError – org.apache.kafka.tools.consumer.group.ResetConsumerGroupOffsetTest<1s
      Build / JDK 17 and Scala 2.13 / initializationError – org.apache.kafka.tools.reassign.ReassignPartitionsIntegrationTest<1s

      The exceptions for these tests are as follows:

      org.opentest4j.AssertionFailedError: Found 1 unexpected threads during @BeforeAll: `executor-client-metrics` ==> expected: <true> but was: <false>
          at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
          at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
          at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
          at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
          at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
          at app//kafka.utils.TestUtils$.verifyNoUnexpectedThreads(TestUtils.scala:1896)
          at app//kafka.server.QuorumTestHarness.setUpClass(QuorumTestHarness.scala:474)
      ...
          Suppressed: org.opentest4j.AssertionFailedError: Found 1 unexpected threads during @AfterAll: `executor-client-metrics` ==> expected: <true> but was: <false>
              at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
              at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
              at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
              at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
              at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214)
              at app//kafka.utils.TestUtils$.verifyNoUnexpectedThreads(TestUtils.scala:1896)
              at app//kafka.server.QuorumTestHarness.tearDownClass(QuorumTestHarness.scala:482)

      But there is not any additional context about who leaked this thread.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gharris1727 Greg Harris
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: