timeout error with getPublishedBinaries

Bug #1793449 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned

Bug Description

description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

So, this DB query is just somewhat cold; it needs to read a fair number of BinaryPackageRelease rows, and it's possible that it will take a few tries to succeed in doing that.

apport-retrace has no retry logic for these queries, which really isn't going to help here. Do you think you could look into adding that? The relevant code is in apport:backends/packaging-apt-dpkg.py:__AptDpkgPackageInfo.json_request. If this can't be converted to use launchpadlib for whatever reason, then a good approach would be to adapt the backoff-and-retry logic that launchpadlib uses; you can find this in lp:lazr.restfulclient, src/lazr/restfulclient/_browser.py:Browser._request_and_retry. Let me know if you have questions there.

Changed in launchpad:
status: New → Incomplete
tags: added: id-5b9adf80feeff248d63e8d2c
Revision history for this message
Brian Murray (brian-murray) wrote :

I've switched apport to use launchpadlib so I'm closing this as Invalid.

https://bazaar.launchpad.net/~apport-hackers/apport/trunk/revision/3208

Changed in launchpad:
status: Incomplete → 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.