Move pub/sub operations out of lock transaction
Bug #1595413 reported by
Li Ma
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
New
|
Medium
|
Eyal Leshem |
Bug Description
Currently, we implement distributed lock to protect the API session, like
obtain_lock
do neutron db operations
do df db operations
send messages via pub/sub
release_lock
Actually, we need to remove pub/sub out of the lock transaction.
Because if pub/sub fails but db is updated successfully, we do not want to
rollback the db operations. We can issue another message to notify db updates.
As a result, the distributed lock protects the db transactions to make it consistent.
If pub/sub fails, we need to make it stable to avoid the errors, but not rollback the whole db transactions.
summary: |
- Remove pub/sub operations out of lock transaction + Move pub/sub operations out of lock transaction |
Changed in dragonflow: | |
assignee: | Li Ma (nick-ma-z) → Eyal Leshem (leyal) |
To post a comment you must log in.
The discussion is in the thread: https:/ /review. openstack. org/#/c/ 300877/