[sheepdog] [PATCH v2 01/10] sheep: do breadth first search in recover_object_from_replica()

MORITA Kazutaka morita.kazutaka at gmail.com
Thu May 9 09:41:20 CEST 2013


At Thu, 09 May 2013 13:22:20 +0800,
Liu Yuan wrote:
> 
> On 05/09/2013 10:38 AM, MORITA Kazutaka wrote:
> >  	buf = valloc(rlen);
> >  	if (!buf) {
> > +		ret = SD_RES_NO_MEM;
> >  		sd_eprintf("%m");
> >  		goto out;
> 
> It seems that we just rollback when SD_RES_NO_MEM happens, is this the
> right behavior? This will lead possible stale object.

Hmm, breaking block storage semantic in OOM situations looks bad.  It's more
likely to happen than rapid node changes.

Then, the only way we can take here looks like aborting sheep (use xvalloc
instead) to me.  What do you think?

Thanks,

Kazutaka



More information about the sheepdog mailing list