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

Handle membership in the client on split brain #17148

Merged

Conversation

sancar
Copy link
Contributor

@sancar sancar commented Jul 1, 2020

It could be the case that when split brain occurs the member list
version that client remembers is already bigger than the the
half that client is connected to. In this case, client can not
apply the member list because it has an older version. But
in fact, it should have been applied, otherwise client get
stuck with an old member-list.

As a solution, we clear the member-list version everytime
we re-register the member list listener.

fixes #16855

backport of #17147
(cherry picked from commit 354e2cb)

@sancar sancar added this to the 4.0.3 milestone Jul 1, 2020
@sancar sancar requested a review from a team as a code owner July 1, 2020 09:43
@sancar sancar self-assigned this Jul 1, 2020
Copy link
Contributor

@mdumandag mdumandag left a comment

Choose a reason for hiding this comment

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

Approving. Minor comment that I made for the 4.x PR can also be applied here

sancar added 2 commits July 2, 2020 15:30
It could be the case that when split brain occurs the member list
version that client remembers is already bigger than the the
half that client is connected to. In this case, client can not
apply the member list because it has an older version. But
in fact, it should have been applied, otherwise client get
stuck with an old member-list.

As a solution, we clear the member-list version everytime
we re-register the member list listener.

fixes hazelcast#16855

(cherry picked from commit 354e2cb)
@sancar sancar force-pushed the fix/clientMembershipOnSplitBrain/4.0.z branch from 58d54d5 to bab778d Compare July 2, 2020 12:31
@sancar sancar merged commit 67f83d8 into hazelcast:4.0.z Jul 3, 2020
@sancar sancar deleted the fix/clientMembershipOnSplitBrain/4.0.z branch July 3, 2020 12:24
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Jul 6, 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.

None yet

4 participants