[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: r1397773 - rep-sharing in a txn - subversion/libsvn_fs_fs/fs_fs.c

From: Ben Reser <ben_at_reser.org>
Date: Mon, 19 Nov 2012 10:30:02 -0800

On Mon, Nov 19, 2012 at 6:43 AM, Stefan Fuhrmann
<stefan.fuhrmann_at_wandisco.com> wrote:
> A crashed writer process may leave a corrupt protorev and / or
> other incomplete files. There is no atomic incremental change
> here. The caller (client) using the crashed process is supposed
> to detect the crash and abandon the transaction.

I don't think that "supposed to" is documented anywhere (unless you
want to consider our clients behavior as documenation). After dealing
with the stuck being_written flag that produced rep_write_cleanup, I
don't think we should assume that going forward.

It may not be worth dealing with in fsfs but within fsfs2 I think we
should make representation operations even to the protorev files (or
whatever their equivalent is) be atomic. Especially since these
operations are usually driven across separate HTTP requests when we're
using DAV.

Then again, beyond improving repo consistency in some edge cases it'd
also allow us to support parallelizing the PUTs. There may be other
issues I'm not aware of off the top of my head in doing that right
now, but at least in fsfs it's absolutely not supported since for the
entire duration of the PUT you have the protorev file locked.
Received on 2012-11-19 19:30:39 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.