Make pgcreate robust against race conditions
Bug #353865 reported by
Francis J. Lacoste
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Stuart Bishop |
Bug Description
Our database initialization process sometimes fails because of race conditions. This race seems to happen more often in EC2:
Traceback (most recent call last):
File "../../
sys.
File "../../
cur.execute(
psycopg2.
When this error happens, the script should sleep and retry a few times.
Changed in launchpad-foundations: | |
importance: | Undecided → High |
milestone: | none → 2.2.4 |
status: | New → Triaged |
Changed in launchpad-foundations: | |
assignee: | nobody → Stuart Bishop (stub) |
status: | In Progress → Fix Released |
To post a comment you must log in.
I just checked pgcreate.py and we have already implemented this behavior. I don't know what is causing the ec2 failures we see occasionally.