* [Cluster-devel] CMAN cluster event notification broken?
@ 2006-08-24 15:49 Mikhail A Zelikov
0 siblings, 0 replies; only message in thread
From: Mikhail A Zelikov @ 2006-08-24 15:49 UTC (permalink / raw)
To: cluster-devel.redhat.com
I have a 2-node cluster, and I wrote a simple program that registers for
cluster events using:
cman_start_notification and cman_start_recv_data. If a node dies (manual
reboot/shutdown) then I receive CMAN_REASON_PORTCLOSED event and then NO
CMAN_REASON_STATECHANGE (as I woudl expect). I receive
CMAN_REASON_STATECHANGE once the node is booted again. If I do not
register for data then I do not receive CMAN_REASON_PORTCLOSED as
expected.
Is the notification mechanism broken?
Mike
P.S.
It also looks like that the conditions in while loop in cman_dispatch
might be incorrect if the intention was to continue forever as long as
there no errors.
while ( flags & CMAN_DISPATCH_ALL &&
(len < 0 && errno == EAGAIN) );
Should it be:
while ( flags & CMAN_DISPATCH_ALL &&
!(len < 0 && errno == EAGAIN) );
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-24 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 15:49 [Cluster-devel] CMAN cluster event notification broken? Mikhail A Zelikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).