diff options
author | Ruby Loo <ruby.loo@intel.com> | 2017-09-05 14:34:46 -0400 |
---|---|---|
committer | Ruby Loo <ruby.loo@intel.com> | 2017-09-05 14:34:46 -0400 |
commit | d44a210a507c731b66c87cfdf1987716df37d0e3 (patch) | |
tree | c1fe0782584c0c9c0a3397810d10069d82be33d7 /releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml | |
parent | 3dfc17a2eb2680d9e34916c35bf30f677a229e33 (diff) | |
download | ironic-d44a210a507c731b66c87cfdf1987716df37d0e3.tar.gz |
Fix race condition in backfill_version_column()
Fixes a race condition in backfill_version_column(). It was fetching
the objects whose version==None. Then it did an update to set the
value of those object versions. However, it is possible for one of
the object versionss to have been updated after the fetch but before
the update operation, in which case the update operation might set
the version to be an older version.
Change-Id: I882fdd3e83582a4d7110c68b0d84f243234ea7dd
Closes-Bug: #1715190
Diffstat (limited to 'releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml')
-rw-r--r-- | releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml b/releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml new file mode 100644 index 000000000..febe06281 --- /dev/null +++ b/releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixes an issue when running ``ironic-dbsync online_data_migrations``. The + value of an object's new ``version`` column might have been incorrectly + changed from a newer object version to an older object version, due to a + race condition. This is no longer the case. |