event type creation may fail due to a race condtion

Bug #1254800 reported by John Herndon
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
High
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)
Changed in ceilometer:
status: New → Triaged
importance: Undecided → High
gordon chung (chungg)
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
Revision history for this message
shubham chitranshi (chitranshi-shubham) wrote :

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)
Revision history for this message
gordon chung (chungg) wrote :
gordon chung (chungg)
Changed in ceilometer:
assignee: shubham chitranshi (chitranshi-shubham) → nobody
Zhai, Edwin (edwin-zhai)
Changed in ceilometer:
assignee: nobody → Zhai, Edwin (edwin-zhai)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

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

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
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/ceilometer 6.0.0.0rc1

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

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.