bzr imports are sometimes stuck in 'running' state

Bug #434192 reported by Данило Шеган
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Jeroen T. Vermeulen

Bug Description

Sometimes, rosettabranches.py script get stuck in the 'running' state and future runs can't take off then. This points at a problem with code job system, but affects us most badly.

Related branches

Changed in rosetta:
assignee: nobody → Jeroen T. Vermeulen (jtv)
description: updated
Changed in rosetta:
milestone: 3.0 → 3.1.10
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Tim has found the problem. The first thing that happens to a job when it's beginning to be processed is that it's marked as running; the transaction is committed to make this visible.

When a job fails, the transaction is aborted, a new one is implicitly started, and the new job is marked as failed. Then the exception is re-raised. It's caught one call level up, where the error is appended to a list of failures. Then the next job is processed, which as a side effect commits the previous job's failure mark.

But what happens at the end, when there is no next job? I looked at this and stupidly discarded it as something that would have been noticed. At the end, the script registers oopses for any failures. This was failing because of missing configuration values. And at that point there's nothing to catch and handle the exception, so the script borks out. The transaction is never committed, and so that final failure is not recorded.

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :
Changed in rosetta:
assignee: Jeroen T. Vermeulen (jtv) → Tim Penhey (thumper)
assignee: Tim Penhey (thumper) → Jeroen T. Vermeulen (jtv)
status: Triaged → Fix Committed
Revision history for this message
Henning Eggers (henninge) wrote :

The follow-up is bug 438039.

Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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