retry operation if db deadlock is received

Bug #1348588 reported by Rossella Sblendido
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.db
Fix Released
Wishlist
Rossella Sblendido

Bug Description

As suggested here http://dev.mysql.com/doc/refman/5.0/en/innodb-deadlocks.html , if a DB deadlock is received the operation should be retried. Nova already has this retry logic in place https://review.openstack.org/#/c/22276 . All the project can benefit from it, oslo.db should offer a decorator to retry db operations after a deadlock error is got.

Tags: db
tags: added: db
Changed in oslo:
assignee: nobody → Rossella Sblendido (rossella-o)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.db (master)

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

Changed in oslo:
status: New → In Progress
Ben Nemec (bnemec)
Changed in oslo:
importance: Undecided → Wishlist
affects: oslo-incubator → oslo.db
Changed in oslo.db:
status: In Progress → Fix Committed
Changed in oslo.db:
status: Fix Committed → 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.