Add _wrap_db_error support for postgresql

Bug #1331942 reported by ling-yun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

The original "_wrap_db_error" function is only available for mysql.
We need to add support for postgresql.
The deadlock exception thrown from postgresql is TransactionRollbackError,
it's not the same with "OperationalError" thrown from mysql,
and isn't included in sqlalchemy. So, the base exception need to be
catched.

ling-yun (zengyunling)
Changed in cinder:
assignee: nobody → ling-yun (zengyunling)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/104562

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Duncan Thomas (<email address hidden>) on branch: master
Review: https://review.openstack.org/104562
Reason: Abandoning change: No update for more than 14 days

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Automatically unassigning due to inactivity.

Changed in cinder:
assignee: ling-yun (zengyunling) → nobody
status: In Progress → Triaged
Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

This was back when using oslo incubator. Tried to find relevant code in oslo.db, but enough has changed since then that I'm assuming this has since been addressed there. Closing as invalid at any rate since this would now need to be changed in oslo.db and not cinder.

Changed in cinder:
status: Triaged → Invalid
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.