Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a retry on DBDeadlock to _set_allocations()
A job failed with an uncaught DBDeadlock when attempting to run the claim process in https://review.openstack.org/#/c/483566/. This is likely due to the update_available_resource() method of the resource tracker running and updating a resource provider's inventory (and thus the resource provider record's generation field) at the exact same time that the scheduler has already started a transaction that is attempting to claim resources (set allocations) against that same resource provider. It's a rare situation that is highlighted by the test runs but we should handle it regardless. Change-Id: I2c276dc0125b5b9f7a54a1cd431b1b2f5239e93a
- Loading branch information