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

Re: Corrupted repository db

From: Branko ─îibej <brane_at_xbc.nu>
Date: 2004-05-02 10:34:55 CEST

Mark Slater wrote:

> I posted this problem to the user's list, but heard only silence... I
> also posted on the berkeley DB newsgroup and got an answer that,
> while the command worked, failed to restore functionality to the
> repository. So here goes...
>
> A few days ago, I went to shut my computer off (MacOS X 10.3.3, Dual
> G4)... after 10-20 minutes of being logged out, but not shut off, I
> decided it needed help, so I pushed the restart button. I'm not sure
> if that has anything to do with the problem though... it had been a
> while since my last checkin for the day. Anyway, the next day, two of
> my subversion repositories were corrupted. One was fixed with
> svnadmin --recover. The other one seems to be much worse off.

I don't see how Subversion can be the culprit here? This looks like an
OS bug to me, not flushing file caches to disk or something.

> Here's the question and answer from the Berkeley DB newsgroup:
> http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&oe=UTF
> -8&threadm=adecb6f.0404291101.4380b1c9%40posting.google.com&prev=/
> groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF
> -8%26group%3Dcomp.databases.berkeley-db

So, have you tried db_dump -r?

> If there's anything else I can provide that will help determine what
> the problem is, how to fix it, and maybe even what caused it, please
> let me know.

I don't think anyone here can help you. It doesn't look like the data
corruption was caused by Subversion, but by the combination of you OS no
flushing buffers and you turning off the power. I suggest you do what
the BDB people proposed; db_dump -r, and if that doesn't help, then
db_dump -R and edit the result -- although I'm not sure how...

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 2 10:36:46 2004

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.