[sheepdog] [PATCH v5 2/6] tests/functional: add 066 for testing concurrent start up

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Jun 21 08:21:37 CEST 2013


At Fri, 21 Jun 2013 13:02:23 +0800,
Kai Zhang wrote:
> 
> On Jun 21, 2013, at 12:54 PM, Liu Yuan <namei.unix at gmail.com> wrote:
> 
> > On 06/21/2013 03:00 AM, Kai Zhang wrote:
> >> +pkill -9 -f "$SHEEP_PROG $STORE/1"
> >> +pkill -9 -f "$SHEEP_PROG $STORE/2"
> >> +_wait_for_sheep_stop 1
> >> +_wait_for_sheep_stop 2
> > 
> > why not use _kill_sheep? PS, please make this tests ahead of 'testing
> > rejoin cluster'.
> 
> It seems this is not the latest version of the patch.
> I will update it.
> 
> Because there is a sleep() in _kill_sheep.
> But what I want is to kill sheep1 and sheep2 simultaneously. So that sheep2 quit before it receives the event of sheep1's quit.
> This is to ensure that sheep1 and sheep2 can rejoin with any sequence.

The following doesn't work for you?

  _kill_sheep 1 &
  _kill_sheep 2
  wait

Thanks,

Kazutaka



More information about the sheepdog mailing list