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

Re: Timeouts...

From: Brandon Ehle <azverkan_at_yahoo.com>
Date: 2003-02-04 20:58:56 CET

Michael Price wrote:

>Brandon Ehle writes:
> > This is the first I've seen anyone reporting these problems on a
> > non-RedHat box. Before you change your db version, could you try this
> > patch and see what happens?
> >
> > Index: subversion/libsvn_fs/fs.c
> > ===================================================================
> > --- subversion/libsvn_fs/fs.c (revision 4721)
> > +++ subversion/libsvn_fs/fs.c (working copy)
> > @@ -163,7 +163,7 @@
> >
> > /* Checkpoint any changes. */
> > {
> > - int db_err = env->txn_checkpoint (env, 0, 0, 0);
> > + int db_err = env->txn_checkpoint (env, 8000, 60, 0);
> >
> > #if SVN_BDB_HAS_DB_INCOMPLETE
> > while (db_err == DB_INCOMPLETE)
>
>This is just a "curiousity" question, not a "what are you talking about"
>question... but how does only checkpointing if you've written 8MB or its
>been 1 hour since the last checkpoint solve timeout problems?
>
>
Because ra_dav opens several connections to the repository at once from
diffferent processes or threads. If 25 connections all decide to
checkpoint the repository at the same time, your repository will be
unaccessible for a very long time (I've seen it go for up to 4 hours)
and this will generate timeouts on the client side.

This change is also needed for checkouts and updates because they modify
the repository, althought they generally don't write more than 4MB of
data at a time.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 4 21:08:19 2003

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.