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

RE: possible database corruption; need advice

From: Mats Nilsson <mats.nilsson_at_xware.se>
Date: 2002-05-27 10:25:23 CEST

I've managed to reproduce the crash and hang, running svn r1949. I'll build
a HEAD svn later on and try to see if it appears there as well.

r=/mats/svn/repos3

svnadmin create $r
svn mkdir file://$r/trunk -m "rev 1"
svn co file://$r/trunk -d x
cd x
echo bar > bar
svn add bar
svn ci -m "rev 2"
svn mkdir file://$r/tags -m "rev 3"

# if these two lines are commented out, then the rest works
svn cp file://$r/trunk file://$r/tags/t1 -m "rev 4"
svn rm file://$r/tags/t1 -m "rev 5"

# crash
svn cp file://$r/trunk -r 3 file://$r/tags/t1 -m "crashes"

# hang
echo foo > foo
svn add foo
svn ci -m "hangs forever"

/Mats

> -----Original Message-----
> From: Mats Nilsson [mailto:mats.nilsson@xware.se]
> Sent: den 26 maj 2002 14:31
> To: dev@subversion.tigris.org
> Subject: possible database corruption; need advice
>
>
> Hi.
>
> I've been toying with svn to try out different directory layouts for our
> different projects. During this period, I've added and deleted files and
> directories, eventually reaching a point where I would make copies of the
> trunk to a /.../tags/ directory. Every thing has worked perfectly
> until this
> point, using a svn (/trunk@1949) on windows xp. ra_local.
>
> I first started noting problems when I tried to 'svn cp
> file:///repos/x/trunk/ file:///repos/x/tags/foo', where /x/tags
> didn't exist
> in the repo. I got a nonintuitive error message (don't remember
> right now),
> and had to 'svnadmin rmtxn' the non-finished txn.
>
> I 'svn mkdir'ed the missing directory and resubmitted the svn cp
> which then
> worked.
>
> Then I tried 'svn cp -r xxx file:///repos/x/trunk
> file:///repos/x/tags/bar'
> which simply didn't work. In fact, svn crashed. I can reproduce this, and
> post a stackdump if anyone thinks it is interesting.
>
> Anyway, after this nothing works. Even a simple 'echo bar > foo; svn add
> foo; svn ci -m ""' hangs forever. I haven't intercepted this yet.
>
> I have not yet tried to find a reproduction sequence, and I don't really
> expect to be able to, but I'll give it a shot later tonight anyway.
>
>
> My questions to the list:
>
> Do you want me to examine the state of the repository in any way? I would
> need guidance.
>
> Are there any BDB tools, or svnadmin calls that can be used? I tried
> db_verify on the nodes db and it reports something, but I don't
> have a clue
> to what it means, or if it signifies a problem:
>
> $ ./db_verify.exe c:/mats/svn/repos/db/nodes
> db_verify: Out-of-order key, page 1 item 20
> db_verify: Out-of-order key, page 1 item 44
> db_verify: Out-of-order key, page 1 item 108
> db_verify: Out-of-order key, page 1 item 120
> db_verify: Out-of-order key, page 1 item 138
> db_verify: Out-of-order key, page 1 item 172
> db_verify: Out-of-order key, page 1 item 210
> db_verify: Out-of-order key, page 1 item 236
> db_verify: Out-of-order key, page 1 item 266
>
>
> I don't care much for the repository, just wanted to let you all know what
> went down.
>
> Mats
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 27 10:28:47 2002

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