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

Re: svnadmin dump hangs

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-11-07 19:13:14 CET

kfogel@collab.net writes:

> Hmmm. I think this is worth an issue, yes (thanks for the detailed
> report). I wish we had a 100% reliable reproduction recipe, but this
> is probably as good a start as we could ask for with this kind of bug.
>
> -Karl
>
> Dave Rodgman <dave.rodgman@arm.com> writes:
>> I'm having issues with svnadmin dump, which occasionally hangs for no
>> apparent reason. I'm calling it from a post-commit hook for backup
>> purposes. I've verified that
>>
>> - repeating the same command by hand completes successfully
>> - this is not due to disc-space issues
>> - this is happening fairly often - maybe once a week with around
>> 5000 commits per week
>> - this is not related to the size of the commit - it's happened with
>> small and bigish commits
>>
>> Server is v1.2.0 on fsfs backend. Should I raise a defect?

1.2.0 is a bit out-of-date, in particular it has the fsfs multi-thread
lock bug. If you are using a threaded httpd or svnserve then it may
be worth while upgrading to 1.2.3. I don't know if it's the cause of
your problem, the bug showed up as a race if multiple commits occurred
at the same time and it's possible that it would cause problems for
the post-commit scripts.

>>
>> Suggestions gratefully received
>>
>> Dave
>>
>> Some data follows -
>>
>> a recent occurrence:
>>
>> hook script does:
>>
>> svnadmin dump /svn/repositories/devsys/rvct -r 93301 --incremental
>> --deltas > /tmp/incremental_dump_r93301_d20051102171903000000
>>
>> which hangs - ps auxf reveals:
>>
>> httpd 31798 0.0 0.0 5764 1536 ? S Nov02
>> 0:00 /usr/bin/perl /svn/repositories/devsys/rvct/hooks/post-commit /svn/repositories/devsys/rvct 93301
>> httpd 31802 0.0 0.0 2480 948 ? S Nov02 0:00 \_ sh -c
>> svnadmin dump /svn/repositories/devsys/rvct -r 93301 --incremental
>> --deltas > /tmp/incremental_dump_r93301_d2005110217190300httpd 31803
>> 0.0 0.1 7836 3076 ? S Nov02 0:00 \_ svnadmin
>> dump /svn/repositories/devsys/rvct -r 93301 --incremental --deltas
>>
>> The dump file is incomplete; repeating the command by hand (which
>> completes in about 6s) shows that it's about 25% complete.
>>
>> This process is still running if anyone has any suggestions about how I
>> might debug it.

Attach a debugger and get a stack trace. On Linux show us what gdb's
bt command displays:

$ gdb -p <NNN>
(gdb) bt
(gdb) q
$

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 7 19:15:44 2005

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.