Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionManagerTranslateTest should not translate and fail when internal address is not reachable and property set to false: [API-1575] #1378

Open
srknzl opened this issue Sep 29, 2022 · 1 comment

Comments

@srknzl
Copy link
Member

srknzl commented Sep 29, 2022

1) ConnectionManagerTranslateTest
       should not translate and fail when internal address is not reachable and property set to false:
     AssertionError: expected promise to be rejected but it was fulfilled with ClientConnection{ …(15) }

stdout

ConnectionManagerTranslateTest
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57800
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - 70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b
}

    √ should use existing connection when connecting to member
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b, connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57801
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - 70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b
}

[DefaultLogger] INFO at Connection: ClientConnection{alive=false, connectionId=1, remoteAddress=localhost:5701} closed. Reason: Duplicate connection to same member with uuid: 70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b
    √ should translate and connect when internal address is not reachable and property set to true
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b, connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57803
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - 70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b
}

[DefaultLogger] INFO at Connection: ClientConnection{alive=false, connectionId=1, remoteAddress=localhost:5701} closed. Reason: Duplicate connection to same member with uuid: 70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b
    1) should not translate and fail when internal address is not reachable and property set to false
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:70bb50f6-1a83-4f1e-8a01-b6ba6f9b897b, connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN

  ConnectionStrategyTest
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
    √ client with async start should throw when there is no cluster
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] WARN at ConnectionManager: Error during initial connection to 127.0.0.1:5701 Error: Hazelcast client is shutting down
[DefaultLogger] WARN at ConnectionManager: Could not connect to any cluster, shutting down the client: Client is not active.
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] WARN at ConnectionManager: Error during initial connection to 127.0.0.1:5701 Error: Hazelcast client is shutting down
    √ client with async start should throw after shutdown when there is no cluster
[DefaultLogger] WARN at ConnectionManager: Could not connect to any cluster, shutting down the client: Client is not active.
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to localhost:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:8254e069-34cf-4655-a3c3-13baf31062ac, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57819
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - 8254e069-34cf-4655-a3c3-13baf31062ac
}

    √ client with async start should connect to cluster (62ms)
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:8254e069-34cf-4655-a3c3-13baf31062ac, connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:2f6005b6-3722-49df-bbf9-98d007510b85, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57834
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - 2f6005b6-3722-49df-bbf9-98d007510b85
}

[DefaultLogger] WARN at Connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701} closed. Reason: Connection closed by the other side. - Connection closed by the other side.
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:2f6005b6-3722-49df-bbf9-98d007510b85, connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at ConnectionManager: RECONNECT MODE is off. Shutting down the client.
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
    √ client with OFF reconnect mode should not reconnect when member dies and another starts (109ms)
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:bbba5aec-32fb-4952-a9ff-7538b0f42dd9, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57863
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - bbba5aec-32fb-4952-a9ff-7538b0f42dd9
}

[DefaultLogger] WARN at Connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701} closed. Reason: Connection closed by the other side. - Connection closed by the other side.
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:bbba5aec-32fb-4952-a9ff-7538b0f42dd9, connection: ClientConnection{alive=false, connectionId=0, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to Member [localhost]:5701 - bbba5aec-32fb-4952-a9ff-7538b0f42dd9
[DefaultLogger] WARN at ConnectionManager: Switching from current cluster: 16d365c9-6afb-47eb-8bfc-903163ddbf71 to new cluster: 5cf2ff13-e9f5-447a-a242-d810f4776eca
[DefaultLogger] INFO at HazelcastClient: Clearing local state of the client, because of a cluster restart.
[DefaultLogger] INFO at ConnectionManager: Authenticated with server localhost:5701:d22ab3a2-0b16-4fbb-baab-078ec12af3f6, server version: 4.1.10-SNAPSHOT, local address: 127.0.0.1:57866
[DefaultLogger] INFO at ClusterService: 

Members [1] {
	Member [localhost]:5701 - d22ab3a2-0b16-4fbb-baab-078ec12af3f6
}

[DefaultLogger] INFO at LifecycleService: HazelcastClient is CONNECTED
    √ client with ASYNC reconnect mode reconnects when the member dies and another starts  (601ms)
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at ConnectionManager: Removed connection to endpoint: localhost:5701:d22ab3a2-0b16-4fbb-baab-078ec12af3f6, connection: ClientConnection{alive=false, connectionId=1, remoteAddress=localhost:5701}
[DefaultLogger] INFO at LifecycleService: HazelcastClient is DISCONNECTED
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTING
[DefaultLogger] INFO at LifecycleService: HazelcastClient is STARTED
[DefaultLogger] INFO at ConnectionManager: Trying to connect to 127.0.0.1:5701
    √ client with async start should throw on get partition specific proxy calls when no cluster
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTTING_DOWN
[DefaultLogger] INFO at LifecycleService: HazelcastClient is SHUTDOWN
[DefaultLogger] WARN at ConnectionManager: Error during initial connection to 127.0.0.1:5701 Error: Hazelcast client is shutting down
[DefaultLogger] WARN at ConnectionManager: Could not connect to any cluster, shutting down the client: Client is not active.
@srknzl srknzl added this to the Backlog milestone Sep 29, 2022
@github-actions github-actions bot changed the title ConnectionManagerTranslateTest should not translate and fail when internal address is not reachable and property set to false: ConnectionManagerTranslateTest should not translate and fail when internal address is not reachable and property set to false: [API-1575] Sep 29, 2022
@github-actions
Copy link

Internal Jira issue: API-1575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant