+distrotask timeout

Bug #609012 reported by Micah Gersten
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
William Grant

Bug Description

(Error ID: OOPS-1665ED640)

Was attempting this:
https://bugs.edge.launchpad.net/ubuntu/+source/firefox-3.5/+bug/508969/+distrotask

Added firefox and got the oops

Try 2:
(Error ID: OOPS-1665EA660)

Try 3 worked :)

SQL time: 14207 ms
Non-sql time: 221 ms
Total time: 14428 ms
Statement Count: 25

Micah Gersten (micahg)
description: updated
description: updated
Changed in malone:
status: New → Triaged
importance: Undecided → High
description: updated
tags: removed: oops
Revision history for this message
Robert Collins (lifeless) wrote :
Download full text (14.7 KiB)

261 14003ms launchpad-main-master SELECT PublishedPackage.archive, PublishedPackage.binarypackagedescription, PublishedPackage.binarypackagename, PublishedPackage.binarypackagerelease, PublishedPackage.binarypackagesummary, PublishedPackage.binarypackageversion, PublishedPackage.build, PublishedPackage.component, PublishedPackage.datebuilt, PublishedPackage.distribution, PublishedPackage.distroarchseries, PublishedPackage.distroseries, PublishedPackage.distroseriesname, PublishedPackage.id, PublishedPackage.packagepublishingstatus, PublishedPackage.processorfamily, PublishedPackage.processorfamilyname, PublishedPackage.section, PublishedPackage.sourcepackagename, PublishedPackage.sourcepackagerelease, PublishedPackage.sourcepackagereleaseversion FROM PublishedPackage WHERE PublishedPackage.sourcepackagename = 'firefox' AND PublishedPackage.binarypackagename = 'firefox' AND PublishedPackage.distribution = 1 AND PublishedPackage.archive IN (1, 534) ORDER BY PublishedPackage.id DESC LIMIT 1

this performs inconsistently, and slowly at best.

Time: 362.676 ms is the best I got out of it on staging.

this is a bad one:
 Limit (cost=419.90..419.91 rows=1 width=582) (actual time=36657.518..36657.519 rows=1 loops=1)
   -> Sort (cost=419.90..419.91 rows=1 width=582) (actual time=36657.514..36657.514 rows=1 loops=1)
         Sort Key: securebinarypackagepublishinghistory.id
         Sort Method: top-N heapsort Memory: 25kB
         -> Nested Loop (cost=2.80..419.89 rows=1 width=582) (actual time=32965.453..36657.057 rows=79 loops=1)
               -> Nested Loop (cost=2.80..419.30 rows=2 width=562) (actual time=32932.258..36479.947 rows=1474 loops=1)
                     Join Filter: (distroarchseries.processorfamily = processorfamily.id)
                     -> Nested Loop (cost=2.80..416.94 rows=2 width=530) (actual time=32932.241..36456.794 rows=1474 loops=1)
                           Join Filter: (component.id = securebinarypackagepublishinghistory.component)
                           -> Nested Loop (cost=2.80..414.63 rows=2 width=502) (actual time=32932.227..36436.532 rows=1474 loops=1)
                                 Join Filter: (section.id = securebinarypackagepublishinghistory.section)
                                 -> Nested Loop (cost=2.80..410.15 rows=2 width=500) (actual time=32932.166..36315.251 rows=1474 loops=1)
                                       -> Nested Loop (cost=2.80..397.47 rows=2 width=496) (actual time=32932.149..36300.168 rows=1474 loops=1)
                                             Join Filter: (distroseries.id = distroarchseries.distroseries)
                                             -> Seq Scan on distroseries (cost=0.00..2.38 rows=1 width=40) (actual time=0.022..0.092 rows=13 loops=1)
                                                   Filter: (distribution = 1)
                                             -> Hash Join (cost=2.80..394.46 rows=51 width=460) (actual time=475.780..2791.158 rows=1474 loops=13)
                                                   Hash Cond: (securebinarypackagepublishinghistory.distroarchseries = distroarchseries.id)
                                               ...

Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 609012] Re: +distrotask timeout

PublishedPackage is a view that joins 13 tables. If we need to query
this in the appserver, we will likely need to materialize it.
Hopefully we don't need to. We need to see what information this page
actually needs to display - if the view is doing unnecessary work we
should avoid using it.

--
Stuart Bishop <email address hidden>
http://www.stuartbishop.net/

Revision history for this message
Micah Gersten (micahg) wrote :

Here's one where I was just trying to link to Debian upstream:
https://bugs.edge.launchpad.net/ubuntu/+bug/612824/+distrotask
OOPS-1676ED3105

Revision history for this message
Micah Gersten (micahg) wrote :

Now it happened in production :(
OOPS-1676K1464
https://bugs.launchpad.net/ubuntu/+bug/612824/+distrotask

Changed in malone:
status: Triaged → Fix Committed
assignee: nobody → William Grant (wgrant)
milestone: none → 10.08
William Grant (wgrant)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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