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

Greg Harris updated KAFKA-16776:
--------------------------------
    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:
{noformat}
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{noformat}
The exceptions for these tests are as follows:
{noformat}
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){noformat}
But there is not any additional context about who leaked this thread.

  was:
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:
{noformat}
Build / JDK 17 and Scala 2.13 / initializationError – 
org.apache.kafka.tools.TopicCommandIntegrationTest<1sBuild / JDK 17 and Scala 
2.13 / initializationError – 
org.apache.kafka.tools.consumer.group.AuthorizerIntegrationTest<1sBuild / JDK 
17 and Scala 2.13 / initializationError – 
org.apache.kafka.tools.consumer.group.DescribeConsumerGroupTest<1sBuild / JDK 
17 and Scala 2.13 / initializationError – 
org.apache.kafka.tools.consumer.group.ResetConsumerGroupOffsetTest<1sBuild / 
JDK 17 and Scala 2.13 / initializationError – 
org.apache.kafka.tools.reassign.ReassignPartitionsIntegrationTest<1s{noformat}
The exceptions for these tests are as follows:
{noformat}
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){noformat}
But there is not any additional context about who leaked this thread.


> Builds flaky-failing with leaked client-metrics-reaper thread
> -------------------------------------------------------------
>
>                 Key: KAFKA-16776
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16776
>             Project: Kafka
>          Issue Type: Test
>    Affects Versions: 3.8.0
>            Reporter: Greg Harris
>            Priority: Major
>              Labels: flaky-test
>
> 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:
> {noformat}
> 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{noformat}
> The exceptions for these tests are as follows:
> {noformat}
> 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){noformat}
> But there is not any additional context about who leaked this thread.



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

Reply via email to