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/195797 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=4cd1b58c8c4 ae2a9da31afc1a8 7647003d6ac128
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 4cd1b58c8c4ae2a 9da31afc1a87647 003d6ac128
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.
Conflicts:
neutron/ plugins/ ml2/drivers/ helpers. py
neutron/ plugins/ ml2/plugin. py
neutron/ tests/unit/ ml2/test_ ml2_plugin. py
(cherry picked from commit 5dbb34b56fc42d9 c68bf6647910a43 7a2ad6b29e) 25df58f5da2c83b b699a548255
Change-Id: I68f9ae80198797
Closes-Bug: #1382064