Skip to content

test_keeper_map/test.py::test_create_drop_keeper_map_concurrent is flaky #48180

@azat

Description

@azat

https://play.clickhouse.com/play?user=play#U0VMRUNUIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgcmVwb3J0X3VybApGUk9NIGNoZWNrcwpXSEVSRSBjaGVja19uYW1lIExJS0UgJ0ludGVncmF0aW9uJScgYW5kIHRlc3RfbmFtZSBsaWtlICcldGVzdF9jcmVhdGVfZHJvcF9rZWVwZXJfbWFwX2NvbmN1cnJlbnQlJwogICAgQU5EIGNoZWNrX3N0YXJ0X3RpbWUgPj0gbm93KCkgLSBJTlRFUlZBTCA3IGRheQogICAgQU5EIHRlc3Rfc3RhdHVzICE9ICdTS0lQUEVEJwogICAgQU5EIHRlc3Rfc3RhdHVzIExJS0UgJ0YlJwogICAgQU5EIGNoZWNrX3N0YXR1cyAhPSAnc3VjY2VzcycKT1JERVIgQlkgY2hlY2tfbmFtZSwgdGVzdF9uYW1lLCBjaGVja19zdGFydF90aW1l

____________________ test_create_drop_keeper_map_concurrent ____________________
[gw4] linux -- Python 3.8.10 /usr/bin/python3

self = <EventProxy object, typeid 'Event' at 0x7f23986818e0>, methodname = 'set'
args = (), kwds = {}

    def _callmethod(self, methodname, args=(), kwds={}):
        '''
        Try to call a method of the referent and return a copy of the result
        '''
        try:
>           conn = self._tls.connection
E           AttributeError: 'ForkAwareLocal' object has no attribute 'connection'

/usr/lib/python3.8/multiprocessing/managers.py:827: AttributeError

During handling of the above exception, another exception occurred:

started_cluster = <helpers.cluster.ClickHouseCluster object at 0x7f23bc1232b0>

    def test_create_drop_keeper_map_concurrent(started_cluster):
        pool = Pool()
        manager = multiprocessing.Manager()
        stop_event = manager.Event()
        results = []
        for i in range(multiprocessing.cpu_count()):
            sleep(0.2)
            results.append(
                pool.apply_async(
                    create_drop_loop,
                    args=(
                        i,
                        stop_event,
                    ),
                )
            )
    
        sleep(60)
>       stop_event.set()

test_keeper_map/test.py:139: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.8/multiprocessing/managers.py:1106: in set
    return self._callmethod('set')
/usr/lib/python3.8/multiprocessing/managers.py:831: in _callmethod
    self._connect()
/usr/lib/python3.8/multiprocessing/managers.py:818: in _connect
    conn = self._Client(self._token.address, authkey=self._authkey)
/usr/lib/python3.8/multiprocessing/connection.py:502: in Client
    c = SocketClient(address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = '/tmp/pymp-zs6pe87v/listener-afzgl18b'

    def SocketClient(address):
        '''
        Return a connection object connected to the socket given by `address`
        '''
        family = address_type(address)
        with socket.socket( getattr(socket, family) ) as s:
            s.setblocking(True)
>           s.connect(address)
E           ConnectionRefusedError: [Errno 111] Connection refused

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingSpecial issue with list of bugs found by CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions