[sheepdog] [PATCH] cluster/corosync: retry when CS_ERR_TRY_AGAIN is returned

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Sep 3 13:12:25 CEST 2012


At Mon, 03 Sep 2012 19:01:28 +0800,
Liu Yuan wrote:
> 
> On 09/03/2012 06:52 PM, MORITA Kazutaka wrote:
> > I'm testing with both 2.0.1 and 1.4.1, but I've not ever encountered
> > such problems.  Retrying on CS_ERR_TRY_AGAIN error looks correct me.
> > 
> > How about sleeping 1 second before retrying?
> 
> The problem on my machine is that, sheep will retry infinitely if there
> isn't any corosync running, we can't get error msg like "is corosync
> running?"

Sorry, I misunderstood what you wrote.  Actually, the infinite loop
happens when I tries with corosync 1.4.1.

Should we exit after retrying several times?  I guess there is no way
to know whether corosync is busy or not runnning with corosync 1.x.x.

Thanks,

Kazutaka



More information about the sheepdog mailing list