diff options
author | melanie witt <melwittt@gmail.com> | 2022-02-26 19:51:18 +0000 |
---|---|---|
committer | Balazs Gibizer <gibizer@gmail.com> | 2022-05-10 10:34:40 +0000 |
commit | b12f7ebcdd8c51de11aa12d5ba57a679ef941239 (patch) | |
tree | e44232a9c20bb930471f0a33b9b1bff714922257 /nova/scheduler | |
parent | 568769e4b3cf403640b7e42c00b8ea1b63013bb9 (diff) | |
download | nova-b12f7ebcdd8c51de11aa12d5ba57a679ef941239.tar.gz |
Retry in CellDatabases fixture when global DB state changes
There is a NOTE in the CellDatabases code about an unlikely but
possible race that can occur between taking the writer lock to set
the last DB context manager and taking the reader lock to call
target_cell(). When the race is detected, a RuntimeError is raised.
We can handle the race by retrying setting the last DB context manager
when the race is detected, as described in the NOTE.
Closes-Bug: #1959677
Change-Id: I5c0607ce5910dce581ab9360cc7fc69ba9673f35
(cherry picked from commit 1c8122a25f50b40934af127d7717b55794ff38b5)
(cherry picked from commit 875668827896a44db8dd5083bd6148625c6bddea)
Diffstat (limited to 'nova/scheduler')
0 files changed, 0 insertions, 0 deletions