Failed initial scans require manual cleanup

Bug #718511 reported by William Grant
16
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__branch__revision__key"

Currently this needs manual DB cleanup with https://pastebin.canonical.com/43260/.

Related branches

Revision history for this message
William Grant (wgrant) wrote :

BzrSync.getAncestryData assumes the absence of data if last_scanned_id is unset.

William Grant (wgrant)
tags: added: branch-scanner
Ursula Junque (ursinha)
tags: added: oops
description: updated
Changed in launchpad:
importance: High → Critical
Revision history for this message
Aaron Bentley (abentley) wrote :

OOPS-1985SMS60 has the same traceback, but refers to an already-scanned branch. So I think this issue may not be limited only to initial scans.

Aaron Bentley (abentley)
Changed in launchpad:
assignee: nobody → Aaron Bentley (abentley)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Aaron Bentley (abentley)
tags: added: qa-untestable
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.