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

Divij Vaidya resolved KAFKA-14985.
----------------------------------
    Resolution: Duplicate

Resolving as duplicate of existing open JIRA.

> ConnectionQuotasTest.testListenerConnectionRateLimitWhenActualRateAboveLimit()
>  test is flaky
> --------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-14985
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14985
>             Project: Kafka
>          Issue Type: Test
>            Reporter: Manyanda Chitimbo
>            Assignee: Manyanda Chitimbo
>            Priority: Major
>
> The test sometimes fails with the following error
> {code:java}
> Gradle Test Run :core:test > Gradle Test Executor 14 > ConnectionQuotasTest > 
> testListenerConnectionRateLimitWhenActualRateAboveLimit() FAILED
>     java.util.concurrent.ExecutionException: 
> org.opentest4j.AssertionFailedError: Expected rate (30 +- 7), but got 
> 37.47891810856393 (600 connections / 16.009 sec) ==> expected: <30.0> but 
> was: <37.47891810856393>
>         at 
> java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
>         at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
>         at 
> kafka.network.ConnectionQuotasTest.$anonfun$testListenerConnectionRateLimitWhenActualRateAboveLimit$3(ConnectionQuotasTest.scala:412)
>         at scala.collection.immutable.List.foreach(List.scala:333)
>         at 
> kafka.network.ConnectionQuotasTest.testListenerConnectionRateLimitWhenActualRateAboveLimit(ConnectionQuotasTest.scala:412)
>         Caused by:
>         org.opentest4j.AssertionFailedError: Expected rate (30 +- 7), but got 
> 37.47891810856393 (600 connections / 16.009 sec) ==> expected: <30.0> but 
> was: <37.47891810856393>
>             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.AssertEquals.failNotEqual(AssertEquals.java:197)
>             at 
> app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:86)
>             at 
> app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1021)
>             at 
> app//kafka.network.ConnectionQuotasTest.acceptConnectionsAndVerifyRate(ConnectionQuotasTest.scala:904)
>  {code}



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

Reply via email to