enginefacade doesn't flush on nested context manager exit

Bug #1664643 reported by Kevin Benton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.db
Fix Released
Medium
Kevin Benton

Bug Description

If you have code where a context manager is started inside of another one and it exits, it doesn't trigger a session flush.

This makes it difficult to use them as a drop-in replacement for session.begin(subtransactions=True) like we have in lots of places in Neutron because it changes the semantics of fields we expect to be populated on the DB objects (default column values).

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :
Changed in oslo.db:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Kevin Benton (kevinbenton)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.db 4.18.0

This issue was fixed in the openstack/oslo.db 4.18.0 release.

Changed in oslo.db:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.