Skip to content

Conversation

@mdumandag
Copy link
Contributor

Similar to the Java-side fix, we now use the member UUID as the source
of the truth and allow connections to be opened to the same address
more than once. We just make sure that, on the active connections
dictionary, there is just one entry per member via its UUID.

This change simplifies a great deal of things. We now, don't need
a dictionary for pending connections and managing the state of
the connection manager is easier. Also, with this change, we now
make sure that, for the same member, we don't have more than one
active connection in the case of the issue reported on the Java-side
PR.

Also, improved the logging in case of the connection errors.

Closes #333
Closes #378

Similar to the Java-side fix, we now use the member UUID as the source
of the truth and allow connections to be opened to the same address
more than once. We just make sure that, on the active connections
dictionary, there is just one entry per member via its UUID.

This change simplifies a great deal of things. We now, don't need
a dictionary for pending connections and managing the state of
the connection manager is easier. Also, with this change, we now
make sure that, for the same member, we don't have more than one
active connection in the case of the issue reported on the Java-side
PR.

Also, improved the logging in case of the connection errors.
@mdumandag mdumandag force-pushed the simplify-connection-manager branch from 7a710ac to d3b60c8 Compare April 5, 2021 12:23
@mdumandag mdumandag merged commit 157a6f3 into hazelcast:master Apr 6, 2021
@mdumandag mdumandag deleted the simplify-connection-manager branch April 6, 2021 07:37
@degerhz degerhz changed the title Simplify connection manager Simplify connection manager [API-390] Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants