lp.services.webapp.tests.test_error.TestDatabaseErrorViews.test_disconnectionerror_view_integration fails intermittently/rarely in parallel tests

Bug #1003040 reported by Gary Poster
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Francesco Banconi

Bug Description

Very similar to bug 974617. We should insert some retry code in this test just as we did for test_operationalerror_view_integration in the same file--or better, abstract it.

        retries = 10
        for i in xrange(retries):
            try:
                urllib2.urlopen(url)
            except urllib2.HTTPError as e:
                if e.code != httplib.SERVICE_UNAVAILABLE:
                    raise
            else:
                break
            time.sleep(1)
        else:
            raise TimeoutException(
                "Launchpad did not come up after {0} attempts."
                    .format(retries))

The failure message is over here: http://pastebin.ubuntu.com/1001345/

Related branches

Changed in launchpad:
assignee: nobody → Francesco Banconi (frankban)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :

Fixed in stable r15334 (http://bazaar.launchpad.net/~launchpad-pqm/launchpad/stable/revision/15334) by a commit, but not testable.

tags: added: qa-untestable
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Revision history for this message
Gary Poster (gary) wrote :

Seen again, now on 32 thread machine. Maybe we need to further increase the retry for this situation.

Changed in launchpad:
status: Fix Released → Triaged
Changed in launchpad:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :

Fixed in stable r15379 (http://bazaar.launchpad.net/~launchpad-pqm/launchpad/stable/revision/15379) by a commit, but not testable.

Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
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.