SAWarning: The IN-predicate on tags.tag was invoked with an empty sequence

Bug #1480226 reported by Sergey Nikitin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Sergey Nikitin

Bug Description

When the 'to_delete' list of instance tags in db method instance_tag_set() is empty, warnings are printed in the nova logs:

SAWarning: The IN-predicate on "tags.tag" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate. Consider alternative strategies for improved performance.

The fix is to not query the DB in that case.

Changed in nova:
assignee: nobody → Sergey Nikitin (snikitin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/207832
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=edd01dc079accd31acf202189f78b5fc1eadb735
Submitter: Jenkins
Branch: master

commit edd01dc079accd31acf202189f78b5fc1eadb735
Author: Sergey Nikitin <email address hidden>
Date: Fri Jul 31 13:34:52 2015 +0300

    Don't query database with an empty list of tags for IN clause

    It raises SAWarning "The IN-predicate on tags.tag was invoked
    with an empty sequence".

    Closes-Bug: #1480226

    Change-Id: Id8fbd92618725f05d32f640f405db9edb0c3e6e5

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-3 → 12.0.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.