commiting after a svadmin pack currupts repository

Issue #901 new
Georg Tsakumagos created an issue

After a complete cycle of dump, load, pack i've started the scm-manager and discover / import the new repositories. Checking out a project works normal, after commiting a single change the repository is corrupted. I'm not able to checkout source without cryptic error messages. Verifying the repo with svadmin verify reports errors in the latest revision.

Tested with SVN 1.9.3 and 1.9.5-1 binaries

The Problem occurs only in repos with history. New repos with few commits do not suffer from this. I've verified, that the following testsuite works with the installed svn binaries. The error occurs if the checkout and commit is fired against the scm-manager.

Test procedure

Step Description
service scm-manager stop Stopping the web-app
svnadmin create --compatible-version 1.9 $SVN_REPO_PATH/$REPO create a new fresh repository. Error occurs even with default settings.
gunzip -c $BACKUP_PATH/$REPO.svn.dmp.gz [pipe] svnadmin load $SVN_REPO_PATH/$REPO Load compressed dump from backup
svnadmin pack -M 100 $SVN_REPO_PATH/$REPO Packing the repository
service scm-manager start Starting the web-app and registering the created repositories.
svn checkout Checking out a project
svn commit Commiting a simple change
svnadmin verify --keep-going $SVN_REPO_PATH/$REPO Verify repository

console output from svnadmin verify --keep-going

* Fehler bei der Verifikation der Revision 26561.
svnadmin: E160004: Corrupt representation '26561 3 120 6163 c1833142d68288b680fd44f31d48c89d e79235890ab1fd69be3ca4cac43ebfafc01ed95e 26560-khs/_4'
svnadmin: E160004: Fehlerhafter Darstellungskopf

-----Zusammenfassung beschädigter Revisionen-----
r26561: E160004: Corrupt representation '26561 3 120 6163 c1833142d68288b680fd44f31d48c89d e79235890ab1fd69be3ca4cac43ebfafc01ed95e 26560-khs/_4'
r26561: E160004: Fehlerhafter Darstellungskopf
svnadmin: E205012: Failed to verify repository 'scm-home/repositories/svn/production'

Checkout error messages

 org.tmatesoft.svn.core.SVNException: svn: E175002: REPORT of '/svn/production/!svn/vcc/default': 500 Server Error (http://scm)

svnadmin info

 svnadmin info /opt/scm-server/scm-home/repositories/svn/production/
Path: /opt/scm-server/scm-home/repositories/svn/production
UUID: 0cccce56-8081-11e0-8d4d-2b7006474b75
Repository Format: 5
Compatible With Version: 1.9.0
Repository Capability: mergeinfo
Filesystem Type: fsfs
Filesystem Format: 7
FSFS Sharded: yes
FSFS Shard Size: 1000
FSFS Shards Packed: 26/26
FSFS Logical Addressing: yes
Configuration File: /opt/scm-server/scm-home/repositories/svn/production/db/fsfs.conf

Comments (3)

  1. Sebastian Sdorra repo owner

    Does the same error occur, if you create the repository with scm-manager instead svnadmin?

  2. Georg Tsakumagos reporter

    Look like it works. Not very fine this way. Restoring backups this way is a very manual task. I hoped i could script it with a few lines.

    svnadmin info scm-home/repositories/svn/production
    Path: scm-home/repositories/svn/production
    UUID: 0cccce56-8081-11e0-8d4d-2b7006474b75
    Repository Format: 5
    Compatible With Version: 1.9.0
    Repository Capability: mergeinfo
    Filesystem Type: fsfs
    Filesystem Format: 7
    FSFS Sharded: yes
    FSFS Shard Size: 1000
    FSFS Shards Packed: 26/26
    FSFS Logical Addressing: no
    Configuration File: scm-home/repositories/svn/production/db/fsfs.conf
    
  3. Log in to comment