Bug 458665 - cman sends too many notification callbacks
cman sends too many notification callbacks
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cman (Show other bugs)
All Linux
medium Severity low
: rc
: ---
Assigned To: Christine Caulfield
Cluster QE
Depends On:
  Show dependency treegraph
Reported: 2008-08-11 09:46 EDT by Christine Caulfield
Modified: 2009-04-16 18:30 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-11-12 03:42:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch (5.22 KB, patch)
2008-08-11 10:57 EDT, Christine Caulfield
no flags Details | Diff

  None (edit)
Description Christine Caulfield 2008-08-11 09:46:39 EDT
Description of problem:

When a node joins or leaves the cluster, cman sends a notification callback for every remaining node in the cluster, rather than just one per transition.

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. Start a cluster
2. Run the cman/test/libtest program on one node
3. start and stop nodes
Actual results:

You will see lots of 
"callback called reason = 1, arg=0"
messages when a node leaves or joins. One per node in the cluster

Expected results:
A single callback for each transition.

Additional info:

The new confchg callback does not suffer from this, and is recommended (though hardly used) in new code.
Comment 1 Christine Caulfield 2008-08-11 10:57:40 EDT
Created attachment 313972 [details]

This patch fixes the problem by using the sync() features of corosync.

We can't simply apply this to RHEL5 (or maybe not even STABLE2) because it will break wire-protocol compatibility.

Steve plans to fix this for corosync but maybe not for earlier openais releases, so if we want to fix this for versions before cluster3 some careful additional thought will be needed.
Comment 2 Christine Caulfield 2008-11-12 03:42:21 EST
After much thought, I think that a 'fix' is not worth it. In fact a callback per node might actually be useful.

Note You need to log in before you can comment on or make changes to this bug.