[ 
https://issues.apache.org/jira/browse/KAFKA-14249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101079#comment-18101079
 ] 

Yunseop Eom commented on KAFKA-14249:
-------------------------------------

PR opened: https://github.com/apache/kafka/pull/22943

Made Tls13SelectorTest.testCloseOldestConnection deterministic by waiting for 
the channel to reach READY before starting idle-expiry verification. Removed 
the TLS 1.3 flaky-test override so the regression runs normally.

Validation: TLS 1.2/TLS 1.3 selector suites and SelectorTest passed; full 
:clients:test and diff checks passed.

Status: PR open and awaiting review.

> Flaky test Tls13SelectorTest. testCloseOldestConnection
> -------------------------------------------------------
>
>                 Key: KAFKA-14249
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14249
>             Project: Kafka
>          Issue Type: Test
>          Components: unit tests
>            Reporter: Divij Vaidya
>            Priority: Minor
>              Labels: flaky-test
>
> Execution run: 
> [https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-12590/10/testReport/org.apache.kafka.common.network/Tls13SelectorTest/Build___JDK_17_and_Scala_2_13___testCloseOldestConnection__/]
>  
> Stack trace:
> {noformat}
> Error Messageorg.opentest4j.AssertionFailedError: The idle connection should 
> have been closed ==> expected: <true> but was: 
> <false>Stacktraceorg.opentest4j.AssertionFailedError: The idle connection 
> should have been closed ==> 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:210)
>       at 
> app//org.apache.kafka.common.network.SelectorTest.testCloseOldestConnection(SelectorTest.java:457)
>       at 
> [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>  Method)
>       at 
> [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>       at 
> [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at [email protected]/java.lang.reflect.Method.invoke(Method.java:568)
>       at 
> app//org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727){noformat}



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

Reply via email to