You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jacek Lewandowski (Jira)" <ji...@apache.org> on 2021/03/11 15:20:00 UTC

[jira] [Comment Edited] (CASSANDRA-16511) Running tests in parallel can sometimes result in port collision

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

Jacek Lewandowski edited comment on CASSANDRA-16511 at 3/11/21, 3:19 PM:
-------------------------------------------------------------------------

:(

But that is probably a different problem (more serious) and has a different fix

 


was (Author: jlewandowski):
:(

But this is probably a different problem (more serious) and has a different fix

 

> Running tests in parallel can sometimes result in port collision
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-16511
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16511
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>             Fix For: 3.0.x, 3.11.x, 4.0.x
>
>
> When running unit tests with parallel execution we may sometimes notice the port collision. In this mode, test classes from the list get consecutive offsets which are added to native transport port, storage port and ssl storage port ( {{OffsetAwareConfigurationLoader}} ). However we add to the ports configured in {{test/conf/cassandra.yaml}} we as we can see we have the following default config:
> {code:java}
> storage_port: 7012
> ssl_storage_port: 7011 {code}
> This results in the situation that thread n has the same storage port as thread n+1 has ssl storage port. There are not much such tests, but we can see {{ConnectionTests}} failing frequently because of that. 
> The other problem is that {{OffsetAwareConfigurationLoader}} does not adjust native transport ssl port.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org