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

Berenguer Blasi commented on CASSANDRA-18829:
---------------------------------------------

The exception it's easy to repro if you force a random port so it looks you're 
on the right track. The theory of things changing under our feet seems the most 
probable one as I checked the server.stop() path and we do indeed wait on all 
futures. I think this is the best bet. CI failures are know or unrelated +1

{noformat}
[junit-timeout] java.lang.IllegalStateException: Failed to bind port 123 on 
127.0.0.1.
[junit-timeout]         at 
org.apache.cassandra.transport.Server.start(Server.java:132)
[junit-timeout]         at 
org.apache.cassandra.cql3.CQLTester.startServer(CQLTester.java:650)
[junit-timeout]         at 
org.apache.cassandra.cql3.CQLTester.requireNetwork(CQLTester.java:606)
[junit-timeout]         at 
org.apache.cassandra.cql3.CQLTester.requireNetwork(CQLTester.java:591)
[junit-timeout]         at 
org.apache.cassandra.index.sai.disk.SelectiveIntersectionTest.setup(SelectiveIntersectionTest.java:52)
[junit-timeout]         at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit-timeout]         at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[junit-timeout]         at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit-timeout]         at 
com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
{noformat}



> Fix flaky test: 
> org.apache.cassandra.index.sai.disk.SelectiveIntersectionTest.tracingIsCorrectlyReported
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18829
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18829
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Feature/SAI
>            Reporter: Brandon Williams
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>
> https://ci-cassandra.apache.org/job/Cassandra-5.0/27/testReport/org.apache.cassandra.index.sai.disk/SelectiveIntersectionTest/tracingIsCorrectlyReported_cdc_jdk17/
> {quote}
> Error Message
> Failed to bind port 34357 on 127.0.0.1.
> Stacktrace
> java.lang.IllegalStateException: Failed to bind port 34357 on 127.0.0.1.
>       at org.apache.cassandra.transport.Server.start(Server.java:132)
>       at org.apache.cassandra.cql3.CQLTester.startServer(CQLTester.java:649)
>       at 
> org.apache.cassandra.cql3.CQLTester.requireNetwork(CQLTester.java:606)
>       at 
> org.apache.cassandra.cql3.CQLTester.requireNetwork(CQLTester.java:591)
>       at 
> org.apache.cassandra.index.sai.disk.SelectiveIntersectionTest.setup(SelectiveIntersectionTest.java:52)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at 
> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
> Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: 
> Address already in use
> {quote}



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

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

Reply via email to