Flaky test [Windows] ReconnectWithDifferentInterfacesTest::test_connection_count_after_reconnect_with_member_hostname_client_ip
还没有人认领这个 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 内容生成。
描述
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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hazelcast/hazelcast-python-client 的其他 Issue
-
Type: Test-Failure
难度 2/5 1-3 小时 新手友好度 72/100
-
Type: Test-Failure
难度 3/5 1-2 天 新手友好度 52/100
-
asyncio to-jira Type: Test-Failure
难度 4/5 3-5 天 新手友好度 35/100
hazelcast/hazelcast-python-client#761 · 1 条评论 ·
-
asyncio to-jira Type: Test-Failure
难度 4/5 3-5 天 新手友好度 35/100
hazelcast/hazelcast-python-client#760 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
查看 hazelcast/hazelcast-python-client 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
marketcalls/openalgo#2472 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 95/100
marimo-team/marimo#11949 ·
维护者通常 1 天内回复
-
bug server-time v2
难度 2/5 1-3 小时 新手友好度 76/100
modelcontextprotocol/servers#5559 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
jxxghp/MoviePilot#7449 ·
维护者通常 1 天内回复
-
devops help wanted
难度 2/5 1-3 小时 新手友好度 72/100
guaardvark/guaardvark#421 ·
维护者通常 2 天内回复