timeout error with getPublishedBinaries
Bug #1793449 reported by
Brian Murray
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I received the following OOPS-93a7f065d6fde5f9dc8da36af604ffb5 when loading this url:
So, this DB query is just somewhat cold; it needs to read a fair number of BinaryPackageRe lease 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:__AptDpkgPac kageInfo. 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.