rosetta export queue appears stuck, and not progressing
Bug #702228 reported by
Steve McInerney
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/
https:/
Related branches
lp:~jtv/launchpad/bug-702228
- j.c.sackett (community): Approve (code*)
- Robert Collins (community): Approve
-
Diff: 242 lines (+134/-27)4 files modifiedcronscripts/rosetta-export-queue.py (+5/-2)
lib/lp/translations/doc/poexport-queue.txt (+1/-1)
lib/lp/translations/scripts/po_export_queue.py (+61/-24)
lib/lp/translations/tests/test_exportresult.py (+67/-0)
tags: | added: canonical-losa-lp |
Changed in launchpad: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | Triaged → In Progress |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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. _conflictsExist ingSourceFileFo rmats here, which still uses cursor().
Instating a SlaveOnlyDataba sePolicy 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 TranslationExpo rter.exportTran slationFiles loop.