503s from https://api.launchpad.net/devel/%7Eubuntumembers/participants

Bug #1840929 reported by Dan Watkins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Colin Watson

Bug Description

This is happening fairly reliably, and started this morning. A few examples:

* https://oops.canonical.com/?oopsid=OOPS-e5a10f33b2077933c4277385c3762b7d
* https://oops.canonical.com/?oopsid=OOPS-b3a6778490f2a8bf4fe0d3b2ba5709be
* https://oops.canonical.com/?oopsid=OOPS-86303dac38f2f9ace4446ee5a5dffb20

The code that is causing this:

def users_in_team(users, team):
    """Determine whether any of these users are in the supplied team.

    :param users: The users which may be members of the supplied team.
    :param team: The team which users may be part of.
    :return: True if any of the users are members of the team, otherwise
        False.
    """
    for member in team.participants:
        if member in users:
            return True
    else:
        return False

Related branches

Revision history for this message
Dan Watkins (oddbloke) wrote :

We run jobs that use this code fairly regularly (we have 4 jobs that run on a 15 minute interval), and we started seeing these failures reliably at 11:34Z today.

Revision history for this message
Paride Legovini (paride) wrote :

The issue can be reproduced by pointing the browser here;

https://api.launchpad.net/devel/~ubuntumembers/participants

It timeouts most of the time.

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

This may have been tickled by some slight network change, but I feel the page must have been marginal already if so.

Colin Watson (cjwatson)
Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → Critical
status: New → In Progress
tags: added: api lp-registry oops
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson)
Changed in launchpad:
status: Fix Committed → Fix Released
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.