Refactor retry mechanism used in some DB operations
Use oslo_db helper that will allow to restart the whole
transaction in case it needs a certain operation to be repeated.
This is a workaround for the REPEATABLE READ problem where
retrying logic will not work because queries inside a transation
will not see updates made by other transactions.
So, run every attempt in a separate transaction.
Reviewed: https:/ /review. openstack. org/149261 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5dbb34b56fc 42d9c68bf664791 0a437a2ad6b29e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5dbb34b56fc42d9 c68bf6647910a43 7a2ad6b29e
Author: Eugene Nikanorov <email address hidden>
Date: Thu Jan 22 15:54:29 2015 +0300
Refactor retry mechanism used in some DB operations
Use oslo_db helper that will allow to restart the whole
transaction in case it needs a certain operation to be repeated.
This is a workaround for the REPEATABLE READ problem where
retrying logic will not work because queries inside a transation
will not see updates made by other transactions.
So, run every attempt in a separate transaction.
Change-Id: I68f9ae80198797 25df58f5da2c83b b699a548255
Closes-Bug: #1382064