[Linux-ha-dev] heartbeat -k hangs forever

Lars Ellenberg l.g.e at web.de
Mon Oct 4 10:30:37 MDT 2004


/ 2004-10-02 16:09:52 -0600
\ Alan Robertson:
> Lars Ellenberg wrote:
> >(ok, it probably would hang an our, until the "more drastic" timer
> >triggers, I did not wait that long ...)
> >
> >context: as you know I do some implementing work on cts stuff.
> >I have a standard start sequence,
> > then the test,
> >then a standard stop sequence.
> >one of my toy-tests was too fast, and my start sequence was not yet
> >correct, so I almost immediately hit the stop sequence, which never
> >returned...
> >
> >reproduce:
> >heartbeat -M & sleep 1; heartbeat -k
> >
> >why?
> >because hb_initiate_shutdown triggers before the initial startup
> >sequence is over, so we still have no communication, ...
> >the SIGTERM is only sent once.
> >repeated SIGTERMs later only trigger "shutdown already in progress".
> >
> >Proposed fix below.
> 
> 
> I assume that this also happens if you don't start with -M.  Your proposed 
> fix looks good.  I'm guessing that you've tested it,

of course :)

> If that's the case, and it passes CTS for 100 iterations or 
> so, then please commit it to both branches.

it did.
committed.

	lge



More information about the Linux-HA-Dev mailing list