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

svnsync from post-commit hangs

From: Turaukar Yur <yuraukar_at_hotmail.com>
Date: 2007-09-11 14:28:07 CEST

I am trying to synchronize changes from one repository to another as new revisions are submitted. This is done by using an appropriate post-commit hook in the master repository which calls svnsync.

Everything works fine (the mirror repos has been initialized, the current state was initially sync'ed, permissions are properly set, etc.).

The only thing I noticed is that commits to the master repos started to be slow since the sync hook was established. SVN is running on a linux system (ubuntu 6) and basically uses the following:

$SVNSYNC synchronize URL_TO_MIRROR_REPO --username=svnsync --password=svnsyncpassword &

exit 0(taken from the submerged svn blog)

Notice the "&" at the end of the line, which I understand is supposed to run svnsync in the background and not have the post-commit hook wait for its completion.
This is however exactly what I can see. It seems that a commit to the master always waits for svnsync to complete. Monitoring this, shows me that the commit sends files to svn (tortoise is used here). When all files have arrived, tortoise is waiting and I can see and svnsync process spawn on the svn server. The post-commit script is also still there with a process state of Z(ombie). When svnsync is done, both processes disappear from the process list and at the same time tortoise reports the commit has finished.

What is wrong with this setup? Any help appreciated.

Neu: Internet Explorer 7 optimiert für MSN!
Received on Tue Sep 11 14:25:04 2007

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

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