rosetta export queue appears stuck, and not progressing

Bug #702228 reported by Steve McInerney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Jeroen T. Vermeulen

Bug Description

We've had some/a complaints that "is time limit where i request a pack translation to download from rosetta ? i did it 2 days ago still waiting?"

cronscripts/rosetta-export-queue.py appears to be going nowhere in a hurry atm:
https://pastebin.canonical.com/41855/

Related branches

Steve McInerney (spm)
tags: added: canonical-losa-lp
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

There's a tough request on the queue that makes the script keep a transaction open for more than 3 hours, at which point the master store connection gets killed by one of our watchdog processes.

There's no good reason why there should be a transaction open on the master store in the first place, until the very end where we remove the request and send email. We're particularly hitting the instance in POTMsgSet._conflictsExistingSourceFileFormats here, which still uses cursor().

Instating a SlaveOnlyDatabasePolicy would make cursor() (and other default stores) use the slave store. That should stop the script from opening a transaction on the master until the end.

We could also consider committing between files, rather than between requests. The place for that would be in the TranslationExporter.exportTranslationFiles loop.

Revision history for this message
Robert Collins (lifeless) wrote :

Triaging low - we need to get the queue unblocked. Do we get an OOPS when this happens?

summary: - cronscripts/rosetta-export-queue.py appears stuck, and not progressing
+ rosetta-export-queue appears stuck, and not progressing
summary: - rosetta-export-queue appears stuck, and not progressing
+ rosetta export queue appears stuck, and not progressing
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
importance: Low → High
Changed in launchpad:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: Triaged → In Progress
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

We don't get an oops; we get emails on error-reports.

To deal with the immediate problem we stretched the timeout for long master transactions. As far as translation exports are concerned we can undo that as soon as my fix rolls out.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad:
milestone: none → 11.02
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

We no longer open master-store transactions for export requests until after the bulk of its work is done.

tags: added: qa-ok
removed: qa-needstesting
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.

Other bug subscribers

Remote bug watches

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