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

Dmitry Konstantinov edited comment on CASSANDRA-16677 at 10/27/26, 10:38 PM:
-----------------------------------------------------------------------------

Fresh example: 
https://ci-cassandra.apache.org/job/Cassandra-5.0/688/testReport/junit/org.apache.cassandra.net/ConnectionTest/Tests___test_system_keyspace_directory_jdk17_12_16___testMessageDeliveryOnReconnect_system_keyspace_directory_jdk17_x86_64/

There is a fix for the flaky test  in 
https://github.com/datastax/cassandra/commit/46716b0137 
(https://github.com/datastax/cassandra/pull/1507)

 inbound.close().get(10, SECONDS) only waits for the server-side channels to 
close. The client side (OutboundConnection) learns about it later, on its own 
event loop.
The test then re-creates the inbound and calls outbound.enqueue(...) straight 
away. Nothing waits for the outbound to notice the disconnect.
In Delivery.run(), state.established().isConnected() (channel.isOpen()) still 
returns true. If it returned false, the code would call requestConnect(), keep 
the message pending and deliver it to the new inbound.
Instead, LargeMessageDelivery.doRun() polls the message off the queue and 
writes it to the stale channel. 



was (Author: dnk):
There is a fix for the flaky test  in 
https://github.com/datastax/cassandra/commit/46716b0137 
(https://github.com/datastax/cassandra/pull/1507)

> Test Failure: Fix flaky ConnectionTest
> --------------------------------------
>
>                 Key: CASSANDRA-16677
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16677
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Messaging/Internode, Test/unit
>            Reporter: Brandon Williams
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>              Labels: green_ci
>             Fix For: 4.0.x, 4.1.x, 7.x
>
>         Attachments: TEST-org.apache.cassandra.net.ConnectionTest.log.xz
>
>
> https://ci-cassandra.apache.org/job/Cassandra-devbranch/785/testReport/junit/org.apache.cassandra.net/ConnectionTest/testMessageDeliveryOnReconnect_compression/
> https://app.circleci.com/pipelines/github/adelapena/cassandra/460/workflows/cf7dcec6-612c-45d1-8471-623bde481dca/jobs/4069
> https://app.circleci.com/pipelines/github/adelapena/cassandra/460/workflows/b750cd38-0263-4b5e-9bb8-a8be98214378/jobs/4065



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to