You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Berenguer Blasi (Jira)" <ji...@apache.org> on 2022/10/14 04:50:00 UTC

[jira] [Commented] (CASSANDRA-17962) Test Failure: UnavailableSocketErrors: Local socket binding errors showing up intermittently in tests

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

Berenguer Blasi commented on CASSANDRA-17962:
---------------------------------------------

Just a note to mention these have been present for ages. They seemed a test env issue at the time and we have also successfully released 4.0 #justfyi

> Test Failure: UnavailableSocketErrors: Local socket binding errors showing up intermittently in tests
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-17962
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17962
>             Project: Cassandra
>          Issue Type: Task
>          Components: Test/unit
>            Reporter: Josh McKenzie
>            Priority: Normal
>
> {code}
> ccmlib.common.UnavailableSocketError: Inet address 127.0.0.2:7000 is not available: [Errno 98] Address already in use; a cluster may already be running or you may need to add the loopback alias
> {code}
> This keeps popping up in a variety of tests:
> [https://ci-cassandra.apache.org/job/Cassandra-4.1/181/testReport/dtest-offheap.paging_test/TestPagingData/test_paging_with_filtering_on_partition_key_on_static_columns/]
> [https://ci-cassandra.apache.org/job/Cassandra-4.1/181/testReport/dtest-offheap.seed_test/TestGossiper/test_startup_after_ring_delay/]
> [https://ci-cassandra.apache.org/job/Cassandra-4.1/181/testReport/dtest-offheap.replication_test/TestSnitchConfigurationUpdate/test_rf_collapse_property_file_snitch/]
> This stems from ccm in common.py:
> {code:java}
> itf = ('127.0.0.2', 7000)
>     def assert_socket_available(itf):
>         info = socket.getaddrinfo(itf[0], itf[1], socket.AF_UNSPEC, socket.SOCK_STREAM)
>         if not info:
>             raise UnavailableSocketError("Failed to get address info for [%s]:%s" % itf)
>     
>         (family, socktype, proto, canonname, sockaddr) = info[0]
>         s = socket.socket(family, socktype)
>         s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
>     
>         try:
> >           s.bind(sockaddr)
> E           OSError: [Errno 98] Address already in use {code}



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

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