Avoid ObjectDeletedError while accessing deleted binding
In some cases access to db object's attribute triggers its refresh.
When the object has been already removed from the database, it could
lead to ObjectDeletedError being thrown.
Unit test was added to cover code path where the issue occurs
however issue doesn't seem to be reproducible with sqlite.
Reviewed: https:/ /review. openstack. org/158678 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c8c07d6f470 99bbe6070369db2 d70a6294a9be33
Committed: https:/
Submitter: Jenkins
Branch: master
commit c8c07d6f47099bb e6070369db2d70a 6294a9be33
Author: Eugene Nikanorov <email address hidden>
Date: Tue Feb 24 15:35:22 2015 +0300
Avoid ObjectDeletedError while accessing deleted binding
In some cases access to db object's attribute triggers its refresh.
When the object has been already removed from the database, it could
lead to ObjectDeletedError being thrown.
Unit test was added to cover code path where the issue occurs
however issue doesn't seem to be reproducible with sqlite.
Change-Id: I0d6f9a91572c89 cf7da1b66b880ae aa6b4b1987e
Closes-Bug: #1424593