cpg: Inform clients about left nodes during pause #347
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Patch tries to fix incorrect behaviour during following test-case:
being paused, so from Node 1 point-of-view, Node 2 and 3 failure
Solution is to:
For Node 1 in example above, downlist contains Node 2 and 3.
in membership
This patch doesn't break backwards compatibility.
I've walked thru all the patches which changed behavior of cpg to ensure
patch does not break CPG behavior. Most important were:
changed to handle double free by split group_info into two structures
cpg_pd (local node clients) and process_info (all clients). Joinlist
was
confchg_fn and made CPG sync correct
behavior without any issues
heuristics to choose same downlist on all nodes. Sadly this idea
was beginning of the problems described in
040fda8,
ac1d79e,
559d408,
02c5dff,
64d0e5a and
b55f32f
authoritative source of nodes/clients but left downlist_master_choose
as a source of information about left nodes
Long story made short. This patch basically reverts
idea of using heuristics to choose same downlist on all nodes.
Signed-off-by: Jan Friesse jfriesse@redhat.com