event type creation may fail due to a race condtion

Bug #1254800 reported by John Herndon on 2013-11-25
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Zhai, Edwin

Bug Description

when event_type or trait_types are created in the sqlalchemy implementation of the storage driver, a race condition exists where one thread could create the event/trait type while another thread is looking it up. The solution may be to catch an exception and try to load the definition from the database.

Changed in ceilometer:
assignee: nobody → John Herndon (john-herndon)
Julien Danjou (jdanjou) on 2014-03-21
Changed in ceilometer:
status: New → Triaged
importance: Undecided → High
gordon chung (chungg) on 2014-10-15
Changed in ceilometer:
assignee: John Herndon (john-herndon) → nobody
Changed in ceilometer:
assignee: nobody → pradeep kumar singh (pradeep-singh-u)
Changed in ceilometer:
assignee: pradeep kumar singh (pradeep-singh-u) → nobody

Hello Pradeep, Can you tell me how far did you go with this ??
any kind of heads up is appreciated ..!!

Changed in ceilometer:
assignee: nobody → shubham chitranshi (chitranshi-shubham)
gordon chung (chungg) on 2015-09-21
Changed in ceilometer:
assignee: shubham chitranshi (chitranshi-shubham) → nobody
Zhai, Edwin (edwin-zhai) on 2016-03-08
Changed in ceilometer:
assignee: nobody → Zhai, Edwin (edwin-zhai)

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

Changed in ceilometer:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/289787
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=6f2d7cbc076c6964062d2199aa3dfd4b9064e28d
Submitter: Jenkins
Branch: master

commit 6f2d7cbc076c6964062d2199aa3dfd4b9064e28d
Author: Edwin Zhai <email address hidden>
Date: Tue Mar 8 08:25:15 2016 +0000

    Fix event_type creationg failure due to race condition

    Race condition exists when 2 threads try to create same event_type, so
    need detect it and load the event_type again.

    Change-Id: If3439817cfbfef90daeb5975338909f8312864c4
    Closes-Bug: #1254800

Changed in ceilometer:
status: In Progress → Fix Released

This issue was fixed in the openstack/ceilometer release candidate.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers