Merge lp:~bac/launchpad/bug-974617 into lp:launchpad
Proposed by
Brad Crittenden
Status: | Merged |
---|---|
Approved by: | Brad Crittenden |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15086 |
Proposed branch: | lp:~bac/launchpad/bug-974617 |
Merge into: | lp:launchpad |
Diff against target: |
59 lines (+26/-3) 1 file modified
lib/lp/services/webapp/tests/test_error.py (+26/-3) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-974617 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Richard Harding (community) | code* | Approve | |
Review via email: mp+101797@code.launchpad.net |
Commit message
After restarting the pgbouncer in a test, retry a few times to give it a chance to come up.
Description of the change
Parallel testing exposed a problem where bouncer.start() was returning
but the bouncer service was not actually up.
This fix is gentler, giving the bouncer more time to tidy up and get started.
To post a comment you must log in.
Bac, looks like a fun issue. Couple of notes:
- What about having the retry count setup as a constant. DB_RETRIES or something in case it needs to be tweaked/adjusted.
- I'm not sure if this exception gets raised to a user or log, but it'd probably be helpful if it has some context to it. Maybe raising an EnvironmentError with a message that it failed to come up after X attempts?