ironic/releasenotes/notes/backfill_version_column_db_race_condition-713fa05832b93ca5.yaml
Ruby Loo d44a210a50 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
2017-09-05 14:34:46 -04:00

8 lines
296 B
YAML

---
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.