Flaky test [Windows] ReconnectWithDifferentInterfacesTest::test_connection_count_after_reconnect_with_member_hostname_client_ip

未关闭
#806 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
testing-qa

调研方向

在测试套件中找到 ReconnectWithDifferentInterfacesTest::test_connection_count_after_reconnect_with_member_hostname_client_ip,并使用链接的 Actions 日志在 Windows 上重现它。跟踪报告的 TargetDisconnectedError 附近的重新连接和连接计数行为;当 Windows 失败问题得到解决且测试能够可靠通过时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Python
星标
115
派生
78
平均合并
2 天 23 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hazelcast/hazelcast-python-client 的其他 Issue

查看 hazelcast/hazelcast-python-client 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。