Failed initial scans require manual cleanup
Bug #718511 reported by
William Grant
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Aaron Bentley |
Bug Description
If the initial scan of a branch commits branchrevisions then dies, we end up with a branch with revisions but last_scanned IS NULL. The next scan run will attempt to do an initial scan, try to insert the same branchrevisions, and die like this:
OOPS-1871SMS100
IntegrityError: duplicate key value violates unique constraint "revision_
Currently this needs manual DB cleanup with https:/
Related branches
lp:~abentley/launchpad/fix-revision-sync
- Robert Collins (community): Approve
-
Diff: 83 lines (+38/-3)2 files modifiedlib/lp/codehosting/scanner/bzrsync.py (+7/-0)
lib/lp/codehosting/scanner/tests/test_bzrsync.py (+31/-3)
tags: | added: branch-scanner |
tags: | added: oops |
description: | updated |
Changed in launchpad: | |
importance: | High → Critical |
Changed in launchpad: | |
assignee: | nobody → Aaron Bentley (abentley) |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
BzrSync. getAncestryData assumes the absence of data if last_scanned_id is unset.