Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4870 closed defect (fixed)

subversion resync can fail with duplicate key error

Reported by: wichert@… Owned by: Christian Boos
Priority: normal Milestone: 0.10.4
Component: version control Version: 0.10.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Doing a resync of a subversion respotitory which appears to be broken as described in #4043 can fail:

done 12400
done 12500
done 12600
done 12700
done 12800
done 12900
done 13000
Command failed: ERROR:  duplicate key violates unique constraint "revision_pkey"

I will include the DEBUG level logs when we hit this problem again.

Attachments (0)

Change History (5)

comment:1 by Christian Boos, 18 years ago

… when we hit this problem again.

You mean it's not systematic?

Like, you're having the above error, then another resync attempt succeeds? If so, the only possible explanation is that there are concurrent resync attempts, like when the web front-end is still enabled while working at the command line with trac-admin.

I think that the new resync code (in #4586) will handle the above situation as well.

comment:2 by Christian Boos, 18 years ago

Milestone: 0.10.50.10.4

comment:3 by Christian Boos, 18 years ago

Keywords: needinfo added

Please can you try to install the latest version of Trac stable, which is supposed to fix this issue as well?

See TracDownload#Tracstable.

comment:4 by Christian Boos, 18 years ago

Keywords: needinfo removed
Resolution: fixed
Status: newclosed

Assumed to be fixed in 0.10.4. If not, please reopen and document using a backtrace obtained by running trac-admin at DEBUG level, as well as an svn log -v -r XXX of the problematic changeset.

comment:5 by Christian Boos, 18 years ago

Actually, what likely happened was that resync was performed while the Trac instance was still in use. I think that this was not really supported before, but in 0.10.4 this is definitely working.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.