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

Corrupted repository db, reproducible

From: Hugh Winkler <hwinkler_at_betweenmarkets.com>
Date: 2002-07-22 08:56:48 CEST

Hi all,

Just built the latest (yesterday July 21).

I made a booboo that scared up a bug. It is reproducible; although
probably timing related, I have not had a problem reproing it.

Start with a fresh repository on the Linux server.

From a remote Windows client using an http:// url, I imported a complete
JDK directory tree. I imported it into a new directory,

While that very long import was taking place from the Windows client,
during the "Transmitting file data ...." phase, I opened a shell on the
Linux server. From a local client on the Linux server, using a file://
url, I similarly imported a complete (Linux) JDK. I (unintentionally)
imported it to the same "new" directory, named "1.4". Shortly thereafter
both imports failed. Evidently the repository db got corrupted by
simultaneously trying to import to the same new directory entry. No
further svn commands succeed against the repository; DB_RUNRECOVERY
seems to be the message.

I am not sure which of the above conditions are necessary to repro the
case, but I was able to make it break a couple of times this way.

Below are fragments of error output from the two clients.
<<<<<<<<<<<<<< Windows machine >>>>>>>>>>>>>>>>>>>>>>>
Adding C:\j2sdk1.4.0_01/readme.html
Adding C:\j2sdk1.4.0_01/README.txt
Adding (bin) C:\j2sdk1.4.0_01/src.zipTransmitting file data
svn_error: #21090 : <Bad URL passed to RA layer>

Berkeley DB error while committing Berkeley DB transaction for
filesystem /home/users/hughw/svnroot/db:
DB_RUNRECOVERY: Fatal error, run database recovery

<<<<<<<<<<<<<< Linux machine >>>>>>>>>>>>>>>>>>>>>>>

Adding (bin) /usr/java/j2sdk1.4.0_01/jre/lib/zi/America/Phoenix
Adding (bin) /usr/java/j2sdk1.4.0_01/jre/lib/zi/America/Port-au-Prince

svn_error: #21090 : <Berkeley DB error>
  Berkeley DB error while reading string for filesystem
DB_RUNRECOVERY: Fatal error, run database recovery
Aborted (core dumped)
[root@redbus hughw]# svnadmin shell svnroot/

svn_error: #21090 : <Berkeley DB error>
  Berkeley DB error while opening environment for filesystem
DB_RUNRECOVERY: Fatal error, run database recovery


Hugh Winkler

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 22 08:57:44 2002

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.