[sheepdog] [PATCH] tests/010: fix wrong output

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Sep 18 14:23:47 CEST 2012


At Tue, 18 Sep 2012 19:43:55 +0900,
MORITA Kazutaka wrote:
> 
> At Tue, 18 Sep 2012 17:22:55 +0800,
> Liu Yuan wrote:
> > 
> > From: Liu Yuan <tailai.ly at taobao.com>
> > 
> > For object indexed 6, its localtion track is:
> > 
> > yliu at yliu:~/sheepdog/tests$ collie vdi track -i 6 test
> > Tracking the object 0x7c2b2500000006 (the inode vid 0x7c2b25 idx 6) with 8 nodes
> > 
> > obj 7c2b2500000006 locations at epoch 1, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7004
> > 127.0.0.1:7003
> > 127.0.0.1:7002
> > 
> > obj 7c2b2500000006 locations at epoch 2, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7004
> > 127.0.0.1:7002
> > 127.0.0.1:7000
> > 
> > obj 7c2b2500000006 locations at epoch 3, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7002
> > 127.0.0.1:7000
> > 127.0.0.1:7001
> > 
> > obj 7c2b2500000006 locations at epoch 4, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7003
> > 127.0.0.1:7002
> > 127.0.0.1:7000
> > 
> > obj 7c2b2500000006 locations at epoch 5, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7004
> > 127.0.0.1:7003
> > 127.0.0.1:7002
> > 
> > obj 7c2b2500000006 locations at epoch 6, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7004
> > 127.0.0.1:7007
> > 127.0.0.1:7003
> > 
> > obj 7c2b2500000006 locations at epoch 7, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7000
> > 127.0.0.1:7004
> > 127.0.0.1:7007
> > 
> > obj 7c2b2500000006 locations at epoch 8, copies = 3
> > ---------------------------------------------------
> > 127.0.0.1:7005
> > 127.0.0.1:7000
> > 127.0.0.1:7004
> > 
> > Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> > ---
> >  tests/010.out | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> On my environment, the output of vdi track is as follows and 010.out
> looks correct.  Can you give me 'cluster info' and 'node list'
> outputs, too?

I got the similar results when I tested Sheepdog with small disks.  I
guess 'collie node list' shows the diffrent virtual node numbers on
your environment.  If all daemons have the same number of virtual
nodes, 010.out is correct.

Thanks,

Kazutaka



More information about the sheepdog mailing list