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

Re: svn hung at end of commit operation

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-03-23 03:49:08 CET

On 3/22/06, C. Michael Pilato <cmpilato@collab.net> wrote:
> Garrett Rooney wrote:
> > On 3/22/06, Julian Foad <julianfoad@btopenworld.com> wrote:
> >
> >>Committing to the Subversion repository just now using Subversion trunk r18992,
> >>I got:
> >>
> >>
> >>>~/src/subversion> svn ci -F p && rm p
> >>>Sending subversion/include/svn_xml.h
> >>>Sending subversion/libsvn_client/prop_commands.c
> >>>Sending subversion/libsvn_subr/xml.c
> >>>Transmitting file data ...
> >
> >
> > I've seen svn.collab.net seem a bit sluggish at the end of commits
> > lately, like the post-commit hooks were taking longer than you'd
> > expect them to. Never had it totally hang though, that's pretty
> > weird. Was this a one time thing, or was it reproducable?
>
> Here's the post-commit hook in use on svn.collab.net (for all repositories):
>
> ---------------------------------------------------------------------
> #!/bin/sh
>
> LANG=en_US; export LANG
>
> REPOS=${1}
> REV=${2}
>
> # Send a commit mail.
> if [ -f ${REPOS}/POST-COMMIT-EMAIL ]; then
> /usr/local/svn/hook-scripts/mailer.py commit "${REPOS}" "${REV}" &
> fi
>
> # See http://cia.navi.cx/doc/how-cia-works for what this is about:
> if [ -f ${REPOS}/POST-COMMIT-CIABOT ]; then
> /usr/local/svn/hook-scripts/ciabot_svn.py ${REPOS} ${REV} "svn" &
> fi
>
> # Run the ViewVC commits database indexer.
> if [ -f ${REPOS}/POST-COMMIT-VIEWVC-DB ]; then
> /usr/local/viewvc-1.0-dev/bin/svndbadmin rebuild ${REPOS} ${REV} &
> fi
> ---------------------------------------------------------------------
>
> As you can see, all things are backgrounded. But that does mean there are
> three more processes all asking the repository about commit details for the
> newly committed revision at the same time. svndbadmin is a new addition
> post-migration, but still -- a difference of many *minutes* in post-commit
> because of a backgrounded task? That seems really unlikely.

That probably isn't sufficient to actually let the commit continue
while those tasks are still running. It's not redirecting stdout and
stderr of the backgrounded jobs, so they'll still be held open, at
least with subversion 1.3.x anyway.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 23 03:49:23 2006

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.