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

Fixing initial membership event when client start async #14391

Merged

Conversation

sancar
Copy link
Contributor

@sancar sancar commented Jan 17, 2019

We were firing two events mistakenly when a client starts async.

The first event was empty. This pr adds a check for the first event.
If the member list is empty, it means that the initial membership
event did not arrive yet. We don't need to fire an event.

The actual event will come later and delivered to user-listener.

fixes #14364

@sancar sancar added this to the 3.12 milestone Jan 17, 2019
@sancar sancar self-assigned this Jan 17, 2019
We were firing two events mistakenly when a client starts async.

The first event was empty. This pr adds a check for the first event.
If the member list is empty, it means that the initial membership
event did not arrive yet. We don't need to fire an event.

The actual event will come later and delivered to user-listener.

fixes hazelcast#14364
@sancar sancar force-pushed the fix/initialMemberListOnClientAsyncStart/master branch from 4e9c367 to 83ebe25 Compare January 17, 2019 10:46
@sancar sancar merged commit 495e9f6 into hazelcast:master Jan 18, 2019
@sancar sancar deleted the fix/initialMemberListOnClientAsyncStart/master branch January 18, 2019 09:47
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Client Type: Defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InitialMembershipEvent fired with empty member list when client async start enabled
4 participants