Merge lp:~bac/launchpad/bug-974617 into lp:launchpad
Proposed by
Brad Crittenden
on 2012-04-12
| Status: | Merged |
|---|---|
| Approved by: | Brad Crittenden on 2012-04-12 |
| 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) | 2012-04-12 | Approve on 2012-04-12 | |
| Richard Harding (community) | code* | 2012-04-12 | Approve on 2012-04-12 |
|
Review via email:
|
|||
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.
| j.c.sackett (jcsackett) wrote : | # |
This looks good; I agree with Rick's request that the count be setup as a constant rather than a magic number in the iteration, but that's pretty minor.
review:
Approve

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?