Engine raises the error 'Delayed call not found'

Bug #1428635 reported by Nikolay Makhotkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Nikolay Makhotkin

Bug Description

Steps to reproduce:

1. Run mistral
2. Run at least 2 engines
3. Run workflow where scheduler will be used (e.g. with policies: wait-before, wait-after or retry)
4. One of engines raises the error 'Delayed call not found'

The reason is that each engine instance also creates the scheduler process. The scheduler check DB on delayed calls every second therefore both schedulers tries to process this delayed call. Once the call was deleted from the DB, another scheduler also tries to delete it but it doesn't find the delayed call because it was already deleted.

The possible solution is to wrap delayed call processing into one transaction.

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

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

Changed in mistral:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/161716
Committed: https://git.openstack.org/cgit/stackforge/mistral/commit/?id=850e658cbbbdea75817c6a4fb55f64c538631c3b
Submitter: Jenkins
Branch: master

commit 850e658cbbbdea75817c6a4fb55f64c538631c3b
Author: Nikolay Mahotkin <email address hidden>
Date: Thu Mar 5 16:31:28 2015 +0300

    Fixing scheduler work

    Closes-Bug: #1428635

    Change-Id: Ia1c2ddf9cd4e0cbb71121e88fbb25244fae0d80b

Changed in mistral:
status: In Progress → Fix Committed
Changed in mistral:
status: Fix Committed → Fix Released
Changed in mistral:
milestone: kilo-3 → 2015.1
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.