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

Kai Zhang kyle at zelin.io
Fri Jun 21 07:02:23 CEST 2013


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.

Thanks,
Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130621/0c581392/attachment-0004.html>


More information about the sheepdog mailing list