[sheepdog] [PATCH v4 8/8] sheep: make gateway requests only retry in io_op_done()

Christoph Hellwig hch at infradead.org
Fri May 25 16:22:36 CEST 2012


On Fri, May 25, 2012 at 10:31:00AM +0800, levin li wrote:
> From: levin li <xingke.lwp at taobao.com>
> 
> We should not make gateway retry in check_request when the
> requested object is in recovery, we should make it retry in
> io_op_done(), gateway request does not access local objects,
> so we should not make it retry when the local objects are in
> recovery.

This patch seems to break the following simple test case that reads
from a newly started sheep because it can't find the object yet:

sheep -p 7000 /tmp/sheep/0
collie cluster format --copies=1
collie vdi create test-vdi 300M
dd if=/dev/zero count=100M | collie vdi write tet-vdi

sheep -p 7001 /tmp/sheep/1
collie vdi read -p 7001




More information about the sheepdog mailing list