hazelcast-python-client
hazelcast-python-client copied to clipboard
test_translate_is_not_used_when_member_has_public_client_address_but_option_is_disabled
Failed on Windows against Python 2.7 https://github.com/hazelcast/hazelcast-python-client/runs/3889839024?check_suite_focus=true
======================================================================
FAIL: test_translate_is_not_used_when_member_has_public_client_address_but_option_is_disabled (tests.integration.connection_manager_translate_test.ConnectionManagerTranslateTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\hazelcast-python-client\hazelcast-python-client\tests\integration\connection_manager_translate_test.py", line 116, in test_translate_is_not_used_when_member_has_public_client_address_but_option_is_disabled
conn_manager._get_or_connect_to_member(member).result()
AssertionError: TargetDisconnectedError not raised
Remote controller logs rc-logs-2.7-windows-latest.zip
Failed again. Logs
_ ConnectionManagerTranslateTest.test_translate_is_not_used_when_member_has_public_client_address_but_option_is_disabled _
self = <tests.integration.connection_manager_translate_test.ConnectionManagerTranslateTest testMethod=test_translate_is_not_used_when_member_has_public_client_address_but_option_is_disabled>
def test_translate_is_not_used_when_member_has_public_client_address_but_option_is_disabled(
self,
):
self.client = HazelcastClient(
cluster_name=self.cluster.id,
connection_timeout=1.0,
use_public_ip=False,
)
member = MemberInfo(
_UNREACHABLE_ADDRESS,
uuid.uuid4(),
[],
False,
_MEMBER_VERSION,
None,
{
_CLIENT_PUBLIC_ENDPOINT_QUALIFIER: self.member.address,
},
)
conn_manager = self.client._connection_manager
with self.assertRaises(TargetDisconnectedError):
> conn_manager._get_or_connect_to_member(member).result()
E AssertionError: TargetDisconnectedError not raised
tests\integration\connection_manager_translate_test.py:116: AssertionError
------------------------------ Captured log call ------------------------------
INFO hazelcast.lifecycle:lifecycle.py:125 HazelcastClient 5.1 is STARTING
INFO hazelcast.lifecycle:lifecycle.py:125 HazelcastClient 5.1 is STARTED
INFO hazelcast.connection:connection.py:531 Trying to connect to Address(host=127.0.0.1, port=5701)
INFO hazelcast.lifecycle:lifecycle.py:125 HazelcastClient 5.1 is CONNECTED
INFO hazelcast.connection:connection.py:643 Authenticated with server Address(host=localhost, port=5701):2f536c45-9e19-47a4-9d4f-14313614ef43, server version: 5.0, local address: Address(host=127.0.0.1, port=62626)
INFO hazelcast.cluster:cluster.py:276
Members [1] {
Member [localhost]:5701 - 2f536c45-9e19-47a4-9d4f-14313614ef43
}
INFO hazelcast.client:client.py:447 Client started
INFO hazelcast.connection:connection.py:895 Connection(id=1, live=False, remote_address=Address(host=localhost, port=5701)) closed. Reason: Duplicate connection to same member with UUID: 2f536c45-9e19-47a4-9d4f-14313614ef43
INFO hazelcast.lifecycle:lifecycle.py:125 HazelcastClient 5.1 is SHUTTING_DOWN
INFO hazelcast.connection:connection.py:297 Removed connection to Address(host=localhost, port=5701):2f536c45-9e19-47a4-9d4f-14313614ef43, connection: Connection(id=0, live=False, remote_address=Address(host=localhost, port=5701))
INFO hazelcast.lifecycle:lifecycle.py:125 HazelcastClient 5.1 is DISCONNECTED
INFO hazelcast.lifecycle:lifecycle.py:125 HazelcastClient 5.1 is SHUTDOWN
Fixed by https://github.com/hazelcast/hazelcast-python-client/pull/587