Now that we have an index for the reservations_expire query, we
have uncovered a race with quota usage updates due to the foreign
key on the table, so just retry if there is a deadlock. This is
a fix to unblock the gate while we try to remove the deadlocks
completely.
Change-Id: I1993c3bd1f81facf1d98a4e29f9e8df4858a7d66
Partial-bug: #1350466
(cherry picked from commit 3619c1914e9925e18c062bc11bc3e708137f8322)
Reviewed: https:/ /review. openstack. org/112109 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d8b9ba5ef77 ec4af7a8b67ef38 0d5cd2947de51f
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit d8b9ba5ef77ec4a f7a8b67ef380d5c d2947de51f
Author: Vishvananda Ishaya <email address hidden>
Date: Thu Jul 31 14:00:54 2014 -0700
Add a retry_on_deadlock to reservations_expire
Now that we have an index for the reservations_expire query, we
have uncovered a race with quota usage updates due to the foreign
key on the table, so just retry if there is a deadlock. This is
a fix to unblock the gate while we try to remove the deadlocks
completely.
Change-Id: I1993c3bd1f81fa cf1d98a4e29f9e8 df4858a7d66 18c062bc11bc3e7 08137f8322)
Partial-bug: #1350466
(cherry picked from commit 3619c1914e9925e