Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 591832 Details for
Bug 830799
Nodes do not agree on CPG membership, messages lost
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch - part 1 - Never choose downlist with localnode
2012-06-13-0001-cpg-Never-choose-downlist-with-localnode.patch (text/plain), 1.85 KB, created by
Jan Friesse
on 2012-06-14 13:22:05 UTC
(
hide
)
Description:
Proposed patch - part 1 - Never choose downlist with localnode
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2012-06-14 13:22:05 UTC
Size:
1.85 KB
patch
obsolete
>From 2dc63cce26f96c9251e63fa11112517ccf867747 Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Mon, 11 Jun 2012 14:35:16 +0200 >Subject: [PATCH 1/2] flatiron cpg: Never choose downlist with localnode > >Test scenario is follows: >- node 1, node 2 >- node 1 is paused >- node 2 sees node 1 dead >- node 1 unpaused >- node 1 and 2 both choose same dowlist message which includes node 2 -> >node 2 is efectivelly disconnected > >Patch includes additional test if left_node is localnode. If so, such >downlist is ignored. > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >(backported to flatiron) >--- > services/cpg.c | 21 +++++++++++++++++++++ > 1 files changed, 21 insertions(+), 0 deletions(-) > >diff --git a/services/cpg.c b/services/cpg.c >index d7a26f2..dbd61c5 100644 >--- a/services/cpg.c >+++ b/services/cpg.c >@@ -729,6 +729,8 @@ static struct downlist_msg* downlist_master_choose (void) > struct list_head *iter; > uint32_t cmp_members; > uint32_t best_members; >+ uint32_t i; >+ int ignore_msg; > > for (iter = downlist_messages_head.next; > iter != &downlist_messages_head; >@@ -736,10 +738,26 @@ static struct downlist_msg* downlist_master_choose (void) > > cmp = list_entry(iter, struct downlist_msg, list); > downlist_log(LOGSYS_LEVEL_DEBUG, "comparing", cmp); >+ >+ ignore_msg = 0; >+ for (i = 0; i < cmp->left_nodes; i++) { >+ if (cmp->nodeids[i] == api->totem_nodeid_get()) { >+ log_printf (LOG_DEBUG, "Ignoring this entry because I'm in the left list\n"); >+ >+ ignore_msg = 1; >+ break; >+ } >+ } >+ >+ if (ignore_msg) { >+ continue ; >+ } >+ > if (best == NULL) { > best = cmp; > continue; > } >+ > best_members = best->old_members - best->left_nodes; > cmp_members = cmp->old_members - cmp->left_nodes; > >@@ -754,6 +772,9 @@ static struct downlist_msg* downlist_master_choose (void) > } > > } >+ >+ assert (best != NULL); >+ > return best; > } > >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 830799
: 591832 |
591833
|
591834
|
640856
|
640861
|
640862