[ 
https://issues.apache.org/jira/browse/CASSANDRA-17962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams updated CASSANDRA-17962:
-----------------------------------------
    Summary: Test Failure: UnavailableSocketErrors: Local socket binding errors 
showing up intermittently in tests  (was: Test Failure: 
UnavailableSockerErrors: Local socket binding errors showing up intermittently 
in tests)

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to