Ticket #4043 (closed defect: fixed)
two concurrent resync attempts can leave the database in an inconsistent state
| Reported by: | cboos | Owned by: | cboos |
|---|---|---|---|
| Priority: | highest | Milestone: | 0.10.4 |
| Component: | version control | Version: | 0.10 |
| Severity: | blocker | Keywords: | postgres pysqlite weird |
| Cc: | brad@… |
Description
If this happens, then the every further attempt fails with:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 356, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.py", line 206, in process_request
chgset = repos.get_changeset(new)
File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 41, in get_changeset
self.sync()
File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 107, in sync
(str(current_rev), path, kind, action,
File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
IntegrityError: duplicate key violates unique constraint "node_change_pk"
Workaround: do a trac-admin $TRAC_ENV resync.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


