[sheepdog] [PATCH] sheep: use correct number of copies during reference decrement

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Thu Nov 27 02:33:53 CET 2014


At Wed, 26 Nov 2014 18:54:48 +0100,
Valerio Pachera wrote:
> 
> 2014-11-26 9:57 GMT+01:00 Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>:
> > Valerio, could you test it when you have time?
> 
> It's not in master branch right?
> May you merge it in devel?

Sorry, I forgot to push it to github. Could you test the below branch?
https://github.com/sheepdog/sheepdog/tree/refcnt

Thanks,
Hitoshi

> 
> Sheepdog daemon version 0.9.0_7_gf3da5d6
> 
> dog vdi delete -s 1 test
> failed to read a response
> Failed to write object 807c2b2500000000
> failed to update inode for discarding objects: 807c2b2500000000
> root at test004:~# sheep -v
> Sheepdog daemon version 0.9.0_7_gf3da5d6
> 
> Nov 26 18:48:41   INFO [main] recover_object_main(905) object recovery
> progress  96%
> Nov 26 18:48:41   INFO [main] recover_object_main(905) object recovery
> progress  98%
> Nov 26 18:48:41   INFO [main] recover_object_main(905) object recovery
> progress  99%
> Nov 26 18:48:41 NOTICE [main] cluster_recovery_completion(724) all
> nodes are recovered, epoch 4
> Nov 26 18:49:06  EMERG [io 11525] oid_to_vnodes(80) PANIC: can't find
> a valid vnode
> Nov 26 18:49:06  EMERG [io 11525] crash_handler(268) sheep exits
> unexpectedly (Aborted).
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(833) sheep.c:270: crash_handler
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(847)
> /lib/x86_64-linux-gnu/libpthread.so.0(+0xf02f) [0x7fe8d61cb02f]
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(847)
> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x34) [0x7fe8d57c0474]
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(847)
> /lib/x86_64-linux-gnu/libc.so.6(abort+0x17f) [0x7fe8d57c36ef]
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(833) sheep.h:80: oid_to_vnodes
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(833) ops.c:1940: do_process_work
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(833) work.c:340: worker_routine
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(847)
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x6b4f) [0x7fe8d61c2b4f]
> Nov 26 18:49:06  EMERG [io 11525] sd_backtrace(847)
> /lib/x86_64-linux-gnu/libc.so.6(clone+0x6c) [0x7fe8d586a13c]



More information about the sheepdog mailing list