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

Re: Missing revisions

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-04-13 09:27:08 CEST

On Thursday 12 April 2007 18:35, Gre7g Luterman wrote:
> $ svnadmin verify /var/svn/coyote/
> * Verified revision 0.
> * Verified revision 1.
> <snipped>
> * Verified revision 92.
> svnadmin: No such revision 93
> $
>
> Additionally, when I ask TortoiseSVN for a log, it
> gripes about a missing revision #198, so #93 isn't the
> only one. I'm currently at revision #365.
>
> Everything seems to be working, but this distresses
> me. Additionally, these missing teeth seem to cause
> TortoiseSVN some heartburn when I try to do various
> things. It seems to recover, but it's not giving me
> the warm fuzzies I need to know that my work is
> secure.
>
> Questions:
>
> What could have caused this?

The repository has been corrupted. This could be caused by disk failure,
intentional/accidental modification (by a user or a virus-scanner) or a bug
in svn when writing to it.

> Is it indicative of a crash? If so, what should I do?

Make a backup of it now. Then, create a fresh repository and load the dumpfile
of the latest backup into it. Now, try to recover the revisions after the
backup by incrementally dumping the missing revisions. Chances are that this
is already enough.

> Is there something I can stick in to fill these
> missing gaps? I'm guessing nothing crucial was lost
> since everything seems to run okay, so would there be
> a way to stick in a stub that basically says,
> "revision #93... no changes", just so everyone is
> happy again?

Later revisions might refer to data that was created in those revisions, so
definitely not everything is shiny.

> Could I remove these gaps by exporting the remaining
> pieces, catting them together and importing them
> again?

You might, it depends on what happened in those revisions.

> I fear that solution because I've labelled
> branches in my log text and the revisions will be
> wrong if I omit these gaps.

You can tell 'svnadmin load' to not renumber revisions.

> Any feedback from others with a similar experience
> would be appreciated. My boss will have a heart-attack
> if he finds that my last year of work is in jeopardy.

Don't you have backups? That's just insanely stupid! And don't forget to
actually test the recovery mechanism.

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 13 09:26:16 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.