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

ASF GitHub Bot commented on KAFKA-7288:
---------------------------------------

rajinisivaram commented on pull request #6390: KAFKA-7288 - Make sure no bytes 
buffered when relying on idle timeout in channel close test
URL: https://github.com/apache/kafka/pull/6390
 
 
   SelectorTest.testCloseConnectionInClosingState sends and receives messages 
to get the channel into a state with staged receives and then waits for idle 
timeout to close the channel. When run with SSL, the channel may have buffered 
bytes that prevent the channel from being closed. Updated the test to wait 
until there are no buffered bytes as well. I have left the number of retries to 
achieve this state at 100, since my local runs always succeed the first time.
   
   I wasn't able to recreate the failure with or without the fix.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Transient failure in SslSelectorTest.testCloseConnectionInClosingState
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-7288
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7288
>             Project: Kafka
>          Issue Type: Bug
>          Components: unit tests
>    Affects Versions: 2.3.0
>            Reporter: Rajini Sivaram
>            Assignee: Rajini Sivaram
>            Priority: Critical
>              Labels: flaky-test
>             Fix For: 2.1.0, 2.3.0
>
>
> Noticed this failure in SslSelectorTest.testCloseConnectionInClosingState a 
> few times in unit tests in Jenkins:
> {quote}
> java.lang.AssertionError: Channel not expired expected null, but 
> was:<org.apache.kafka.common.network.KafkaChannel@4f> at 
> org.junit.Assert.fail(Assert.java:88) at 
> org.junit.Assert.failNotNull(Assert.java:755) at 
> org.junit.Assert.assertNull(Assert.java:737) at 
> org.apache.kafka.common.network.SelectorTest.testCloseConnectionInClosingState(SelectorTest.java:341)
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to