Builder.rescueIfLost writes in a read-only transaction

Bug #906079 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Critical
Unassigned

Bug Description

As seen in http://paste.ubuntu.com/774764/, status_updated can cause a DB write to be flushed in a read-only transaction. I suspect this is Builder.failBuilder <- rescueBuilderIfLost <- Builder.rescueIfLost <- updateBuilderStatus <- Builder.updateStatus <- cancellation_checked.

Related branches

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

The only ways this could happen would be:
 i) the change was actually made in the same read-only transaction, or
ii) the change escaped from a read-write transaction through an exception path that wasn't handled through a commit or abort.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
assignee: nobody → Gavin Panella (allenap)
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Gavin Panella (allenap)
tags: added: qa-untestable
removed: qa-needstesting
Gavin Panella (allenap)
Changed in launchpad:
status: Fix Committed → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-untestable
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-bad
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Gavin Panella (allenap) → nobody
status: In Progress → Triaged
Revision history for this message
William Grant (wgrant) wrote :

The problematic code was reverted.

Changed in launchpad:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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