Flaky test [Windows] ReconnectWithDifferentInterfacesTest::test_connection_count_after_reconnect_with_member_hostname_client_ip

Ouverte
#806 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
38/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Calme
Stack technique
python
Domaine
testing-qa

Piste de recherche

Localisez ReconnectWithDifferentInterfacesTest::test_connection_count_after_reconnect_with_member_hostname_client_ip dans la suite de tests et reproduisez-le sous Windows à l’aide du journal Actions fourni en lien. Suivez le comportement de la reconnexion et du comptage des connexions autour de l’erreur TargetDisconnectedError signalée ; le travail est terminé lorsque l’échec sous Windows est corrigé et que le test réussit de manière fiable.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

asyncio Type: Test-Failure

https://github.com/hazelcast/hazelcast-python-client/actions/runs/25099686944/job/73545344562#step:16:3552

Excerpt from the log:

INFO     hazelcast.internal.asyncio_client:asyncio_client.py:258 Client started
WARNING  hazelcast.internal.asyncio_reactor:asyncio_reactor.py:303 Connection closed by server
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:1041 <hazelcast.internal.asyncio_reactor.AsyncioConnection object at 0x0000022BEB866790> closed. Reason: Connection closed by server
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:363 Removed connection to Address(host=localhost, port=5701):af4a1929-51a3-43e1-a5a0-719c6963821c, connection: <hazelcast.internal.asyncio_reactor.AsyncioConnection object at 0x0000022BEB866790>
INFO     hazelcast.lifecycle:lifecycle.py:128 HazelcastClient 5.6.0 is DISCONNECTED
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:595 Trying to connect to Member [localhost]:5701 - af4a1929-51a3-43e1-a5a0-719c6963821c
WARNING  hazelcast.internal.asyncio_reactor:asyncio_reactor.py:303 Connection closed by server
ERROR    asyncio:base_events.py:1785 Exception in callback _ProactorBasePipeTransport._call_connection_lost(OSError(10057..., 10057, None))
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(OSError(10057..., 10057, None)) created at C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py:152>
source_traceback: Object created at (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 1928, in _run_once
    handle._run()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 315, in _loop_reading
    self._fatal_error(exc, 'Fatal read error on pipe transport')
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 132, in _fatal_error
    self._force_close(exc)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 152, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:1041 <hazelcast.internal.asyncio_reactor.AsyncioConnection object at 0x0000022BEB8A7550> closed. Reason: Connection closed by server
WARNING  hazelcast.internal.asyncio_connection:asyncio_connection.py:602 Error during initial connection to Member [localhost]:5701 - af4a1929-51a3-43e1-a5a0-719c6963821c
Traceback (most recent call last):
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 597, in _connect
    return await get_or_connect_func(target)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 419, in _get_or_connect_to_member
    await self._on_auth(response, connection)
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 645, in _on_auth
    raise e
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 641, in _on_auth
    response = await response
               ^^^^^^^^^^^^^^
hazelcast.errors.TargetDisconnectedError: TargetDisconnectedError
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:595 Trying to connect to Address(host=127.0.0.1, port=5701)
WARNING  hazelcast.internal.asyncio_reactor:asyncio_reactor.py:303 Connection closed by server
ERROR    asyncio:base_events.py:1785 Exception in callback _ProactorBasePipeTransport._call_connection_lost(OSError(10057..., 10057, None))
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(OSError(10057..., 10057, None)) created at C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py:152>
source_traceback: Object created at (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 1928, in _run_once
    handle._run()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 315, in _loop_reading
    self._fatal_error(exc, 'Fatal read error on pipe transport')
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 132, in _fatal_error
    self._force_close(exc)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 152, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:1041 <hazelcast.internal.asyncio_reactor.AsyncioConnection object at 0x0000022BEB738A10> closed. Reason: Connection closed by server
WARNING  hazelcast.internal.asyncio_connection:asyncio_connection.py:602 Error during initial connection to Address(host=127.0.0.1, port=5701)
Traceback (most recent call last):
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 597, in _connect
    return await get_or_connect_func(target)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 407, in _get_or_connect_to_address
    await self._on_auth(response, connection)
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 645, in _on_auth
    raise e
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 641, in _on_auth
    response = await response
               ^^^^^^^^^^^^^^
hazelcast.errors.TargetDisconnectedError: TargetDisconnectedError
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:595 Trying to connect to Address(host=127.0.0.1, port=5702)
WARNING  hazelcast.internal.asyncio_reactor:asyncio_reactor.py:303 Connection closed by server
ERROR    asyncio:base_events.py:1785 Exception in callback _ProactorBasePipeTransport._call_connection_lost(OSError(10057..., 10057, None))
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(OSError(10057..., 10057, None)) created at C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py:152>
source_traceback: Object created at (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\windows_events.py", line 321, in run_forever
    super().run_forever()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 608, in run_forever
    self._run_once()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\base_events.py", line 1928, in _run_once
    handle._run()
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 315, in _loop_reading
    self._fatal_error(exc, 'Fatal read error on pipe transport')
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 132, in _fatal_error
    self._force_close(exc)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 152, in _force_close
    self._loop.call_soon(self._call_connection_lost, exc)
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "C:\hostedtoolcache\windows\Python\3.11.9\x64\Lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
INFO     hazelcast.internal.asyncio_connection:asyncio_connection.py:1041 <hazelcast.internal.asyncio_reactor.AsyncioConnection object at 0x0000022BEB792450> closed. Reason: Connection closed by server
WARNING  hazelcast.internal.asyncio_connection:asyncio_connection.py:602 Error during initial connection to Address(host=127.0.0.1, port=5702)
Traceback (most recent call last):
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 597, in _connect
    return await get_or_connect_func(target)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 407, in _get_or_connect_to_address
    await self._on_auth(response, connection)
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 645, in _on_auth
    raise e
  File "D:\a\hazelcast-python-client\hazelcast-python-client\hazelcast\internal\asyncio_connection.py", line 641, in _on_auth
    response = await response
               ^^^^^^^^^^^^^^
hazelcast.errors.TargetDisconnectedError: TargetDisconnectedError
Langage dominant
Python
Étoiles
115
Forks
78
Merge moyen
2 j 23 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de hazelcast/hazelcast-python-client

Toutes les issues de hazelcast/hazelcast-python-client

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.