Skip to content

Conversation

@mdumandag
Copy link
Contributor

Client shutdown calls were missing for some of the reconnect tests.
Added that and added a secondary shutdown mechanism in case something
goes wrong in the tests (like assertion failures) and we couldn't shutdown
the client.

Client shutdown call were missing for the some of the reconnect tests.
Added that and added a secondary shutdown mechanism in case something
goes wrong in the tests (like assertion failures) and we couldn't shutdown
the client.
Copy link
Contributor

@srknzl srknzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻 Left a question and a nit

Comment on lines +283 to +285

client.shutdown()
self.rc.terminateCluster(cluster.id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how was the client shutting down before this added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was not :D That was the problem

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok that question was to clarify 😄 , thanks

Comment on lines 256 to +258

self.client = client

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could do this as well (same for other self.client = client):

self.client = HazelcastClient(
            cluster_name=cluster.id,
            cluster_members=[client_address],
            cluster_connect_timeout=sys.maxsize,
 )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I head to reference them as self.client instead of client, which I don't like

@mdumandag
Copy link
Contributor Author

Thanks for the review Serkan

@mdumandag mdumandag merged commit 40034ef into hazelcast:master Apr 21, 2021
@mdumandag mdumandag deleted the shutdown-clients-in-tests branch April 21, 2021 12:26
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.

2 participants