Race condition with order processing on workers

Bug #1428282 reported by John Vrbanac
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Critical
John Vrbanac

Bug Description

In a full deployment of Barbican (DB, API, queue, and worker nodes), currently there is a race-condition where the API node pushes the order into the queue before actions have been saved to the DB. This results in the worker failing to process the order, because it cannot retrieve the order from the DB.

Changed in barbican:
assignee: nobody → John Vrbanac (john.vrbanac)
importance: Undecided → Critical
milestone: none → kilo-3
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/161431
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=6a6d13050cf595c0be37304bc654c67a938b0cb4
Submitter: Jenkins
Branch: master

commit 6a6d13050cf595c0be37304bc654c67a938b0cb4
Author: John Vrbanac <email address hidden>
Date: Wed Mar 4 15:43:01 2015 -0600

    Fixing race-condition for order processing in workers

    Fixes issue where orders are processed by workers before the order has
    been committed to the DB.

    Because we're forcing a commit in the order controller, we also need to
    setup an in-memory db for each test setup that calls against a order
    resource.

    Change-Id: Ib9366d2b48ba15b0d7bc9d5bf0da511a1b23acf4
    Closes-Bug: 1428282

Changed in barbican:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in barbican:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: kilo-3 → 2015.1.0
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.