Skip to content

Conversation

@mdumandag
Copy link
Contributor

When client authenticates with the same address more than once, connections and _pending_connections dictionaries of the connection manager are updated with the latests address-future pair as it should be. However, when on_auth or _connection_closed methods are called for each connection, these methods try to pop the same address from these dictionaries more than once which results in a KeyError.

We should try to pop the address but when KeyError happens we should simply pass since that address is already removed from these dictionaries by the previous method calls.

@mdumandag mdumandag added this to the 3.9 milestone Jul 24, 2018
@devOpsHazelcast
Copy link
Contributor

Python 2.7 Tests PASSed.

@devOpsHazelcast
Copy link
Contributor

Python 3.7 Tests PASSed.

@mdumandag mdumandag requested a review from asimarslan July 24, 2018 11:22
@mdumandag mdumandag force-pushed the connection-pop-fix branch from cd5d049 to bf770eb Compare July 27, 2018 08:16
@mdumandag mdumandag force-pushed the connection-pop-fix branch from bf770eb to 8a2fd27 Compare July 27, 2018 08:18
@devOpsHazelcast
Copy link
Contributor

Python 2.7 Tests PASSed.

@devOpsHazelcast
Copy link
Contributor

Python 3.7 Tests PASSed.

1 similar comment
@devOpsHazelcast
Copy link
Contributor

Python 3.7 Tests PASSed.

@devOpsHazelcast
Copy link
Contributor

Python 2.7 Tests PASSed.

@devOpsHazelcast
Copy link
Contributor

Python 3.7 Tests PASSed.

@devOpsHazelcast
Copy link
Contributor

Python 2.7 Tests FAILed.

@mdumandag
Copy link
Contributor Author

verify

@devOpsHazelcast
Copy link
Contributor

Python 3.7 Tests PASSed.

@devOpsHazelcast
Copy link
Contributor

Python 2.7 Tests PASSed.

@asimarslan asimarslan merged commit 5ed3e6e into hazelcast:master Jul 27, 2018
@mdumandag mdumandag deleted the connection-pop-fix branch July 31, 2018 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants