Timeout on listing pages

Bug #409912 reported by James Westby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Tim Penhey

Bug Description

Hi,

For the last few days I have been getting timeouts on branch listing pages,
such as https://code.edge.launchpad.net/groff. This seems to happen for
both project and people listings, but only for me, not for other people on
the same page.

An example is OOPS-1314ED463.

Thanks,

James

James Westby (james-w)
tags: added: oops timeout
Changed in launchpad-code:
status: New → Confirmed
Revision history for this message
Jonathan Lange (jml) wrote :

Looks like there are a bunch of merge proposal queries all taking ~2s.

SELECT COUNT(*) FROM BranchMergeProposal WHERE BranchMergeProposal.source_branch IN (SELECT Branch.id FROM Branch WHERE Branch.product = %s AND Branch.id IN ((SELECT Branch.id FROM Branch WHERE Branch.private = %s) UNION (SELECT Branch.id FROM Branch, TeamParticipation WHERE Branch.owner = TeamParticipation.team AND TeamParticipation.person = %s) UNION (SELECT Branch.id FROM Branch, BranchSubscription, TeamParticipation WHERE BranchSubscription.branch = Branch.id AND BranchSubscription.person = TeamParticipation.team AND TeamParticipation.person = %s AND Branch.private = %s))) AND BranchMergeProposal.target_branch IN ((SELECT Branch.id FROM Branch WHERE Branch.private = %s) UNION (SELECT Branch.id FROM Branch, TeamParticipation WHERE Branch.owner = TeamParticipation.team AND TeamParticipation.person = %s) UNION (SELECT Branch.id FROM Branch, BranchSubscription, TeamParticipation WHERE BranchSubscription.branch = Branch.id AND BranchSubscription.person = TeamParticipation.team AND TeamParticipation.person = %s AND Branch.private = %s)) AND BranchMergeProposal.queue_status IN (%s)

Changed in launchpad-code:
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Tim Penhey (thumper) wrote :

This is primarily around the visibility query for branches and merge proposals. I *think* I have this fixed now.

Changed in launchpad-code:
assignee: nobody → Tim Penhey (thumper)
milestone: none → 2.2.8
status: Triaged → In Progress
Tim Penhey (thumper)
Changed in launchpad-code:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in launchpad-code:
status: Fix Committed → Fix Released
Revision history for this message
James Westby (james-w) wrote :

Hi,

I'm getting OOPS still on branch listings:

    https://lp-oops.canonical.com/oops.py/?oopsid=1364ED613

would you like a new bug for it?

Thanks,

James

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.