timeout in project code page

Bug #271879 reported by Diogo Matsubara
22
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Paul Hummer

Bug Description

As seen in OOPS-989EB101 the +code-index page for bzr timed out. Some people reported that page was constantly timing out.

Some other occurences: OOPS-990B3705, OOPS-990D1962, OOPS-990F150
Related: OOPS-1038EA132, OOPS-1038EA133, OOPS-1038EB142, OOPS-1038ED115

After 2.1.11 rollout:OOPS-1055EA104, OOPS-1055EA105, OOPS-1055EA116, OOPS-1059S691, OOPS-1059S686, OOPS-1059S689

Recent soft timeouts: OOPS-1063EA15, OOPS-1063EA16, OOPS-1063EA162, OOPS-1063EA185, OOPS-1063EA25, OOPS-1063EA93, OOPS-1063EB106, OOPS-1063EB154, OOPS-1063EB35, OOPS-1063EC152

Recent hard timeouts: edge(r7374): OOPS-1068EA193, OOPS-1068EA207, OOPS-1068EA208, OOPS-1068EB172, OOPS-1068EB194, OOPS-1068EB196, OOPS-1068ED154, OOPS-1068ED183, OOPS-1068EA186, OOPS-1068EA187, OOPS-1068EA198, OOPS-1068EC155, OOPS-1068EC157, OOPS-1068EC169, OOPS-1068EC229

Tim Penhey (thumper)
Changed in launchpad-bazaar:
assignee: nobody → thumper
importance: Undecided → Critical
status: New → In Progress
Revision history for this message
Tim Penhey (thumper) wrote :

Fixed in RF 7035.

Changed in launchpad-bazaar:
milestone: none → 2.1.9
status: In Progress → Fix Committed
Revision history for this message
Joey Stanford (joey) wrote :

Thumper: Landed before IR was required thus no IR required for this one.

Tim Penhey (thumper)
Changed in launchpad-bazaar:
status: Fix Committed → Fix Released
Revision history for this message
Jonathan Lange (jml) wrote :

This doesn't look fixed to me. https://code.edge.launchpad.net/launchpad times out (Error ID: OOPS-998EC32).

Changed in launchpad-bazaar:
status: Fix Released → Triaged
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Hi Tim, can you check this bug again?

I have some samples of post rollout hard time outs: OOPS-996S7, OOPS-996A2672 and lots of soft time outs: OOPS-996S8, OOPS-997A1735, OOPS-997A1546, OOPS-997A1674, OOPS-997B1937

Changed in launchpad-bazaar:
milestone: 2.1.9 → 2.1.10
Revision history for this message
Tim Penhey (thumper) wrote :

This appears to be two different things now:

The first is not caching the security checks. This is being worked on by Michael and the branch is currently being reviewed.

The second is a slow query for getting the revisions. It is much slower than I expected, so I'll chase it up with stub or jtv.

Revision history for this message
Tim Penhey (thumper) wrote :

I'm downgrading to High as we have stopped the project listing for active projects timing out every time.

Now it is private branch listings and speeding up the revision count checks.

Changed in launchpad-bazaar:
importance: Critical → High
Ursula Junque (ursinha)
description: updated
Paul Hummer (rockstar)
Changed in launchpad-bazaar:
milestone: 2.1.10 → 2.1.11
Tim Penhey (thumper)
Changed in launchpad-bazaar:
milestone: 2.1.11 → 2.1.12
Ursula Junque (ursinha)
description: updated
Revision history for this message
Tim Penhey (thumper) wrote :

I have a branch that will save up to another 2s, however the vast majority of the time is in the query for the latest revisions.

Stuart, can we talk again about how to optimise this query?

Changed in launchpad-bazaar:
assignee: thumper → stub
Revision history for this message
Tim Penhey (thumper) wrote :

OK. I'll look to change the query to do this.

Also the older OOPSes that you were looking at with all the repeated branch subscription queries was due to the security adapter not caching checks. This was fixed several releases ago.

Changed in launchpad-bazaar:
assignee: stub → thumper
Ursula Junque (ursinha)
description: updated
Ursula Junque (ursinha)
description: updated
Paul Hummer (rockstar)
Changed in launchpad-bazaar:
assignee: thumper → rockstar
Revision history for this message
Stuart Bishop (stub) wrote :

The lp:~stub/launchpad/pending-db-changes branch contains the indexes in patch-2109-14-0.sql

Ursula Junque (ursinha)
description: updated
Paul Hummer (rockstar)
Changed in launchpad-bazaar:
status: Triaged → In Progress
Tim Penhey (thumper)
Changed in launchpad-bazaar:
status: In Progress → Fix Committed
Paul Hummer (rockstar)
Changed in launchpad-bazaar:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
visibility: private → public
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.