SAwarning when restart senlin-engine

Bug #1538382 reported by Ethan Lynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Low
Ethan Lynn

Bug Description

If num_engine_workers larger than 1 , restart senlin-engine might get following warnings occasionally:

/home/stack/huyanyan/python/virtualenv/SENLINENV/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py:925: SAWarning: DELETE statement on table 'service' expected to delete 1 row(s); 0 were matched. Please set confirm_deleted_rows=False within the mapper configuration to prevent this warning.

There might be potential race condition during cleaning dead service records in db.

Ethan Lynn (ethanlynn)
Changed in senlin:
status: New → Triaged
importance: Undecided → Low
Ethan Lynn (ethanlynn)
Changed in senlin:
assignee: nobody → Ethan Lynn (ethanlynn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

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

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

Reviewed: https://review.openstack.org/281069
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=1ff29a5b12963f3e35ea9bec9792f80a58592679
Submitter: Jenkins
Branch: master

commit 1ff29a5b12963f3e35ea9bec9792f80a58592679
Author: Ethan Lynn <email address hidden>
Date: Wed Feb 17 14:27:22 2016 +0800

    Fix race condition in service delete

    Use synchronize_session='fetch' to force refresh session before
    delete service record in db.

    Change-Id: I237336560cdfedb779fabfa0d469af8f092180ec
    Closes-bug: #1538382

Changed in senlin:
status: In Progress → 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.