[sheepdog] [PATCH v3] recovery: fix incomplete recovery because of faulty oid scheduling

MORITA Kazutaka morita.kazutaka at gmail.com
Mon Apr 29 15:21:44 CEST 2013


At Mon, 29 Apr 2013 20:55:39 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> tests/010 will fail sometimes to catch this bug.
> 
> When auto-recover is disabled, if we prepare_schedule_oid on the same oid
> multiple times, it will break finish_schedule_oid to wrongly squeeze some
> victim oid out of rw->oids array, then this node will never have a chance to
> recover the ejected oids.
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/recovery.c |   12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list