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.
Reviewed: https:/ /review. openstack. org/111084 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3619c1914e9 925e18c062bc11b c3e708137f8322
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3619c1914e9925e 18c062bc11bc3e7 08137f8322
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
Partial-bug: #1350466