Warning for image_locations.id being empty while running tests

Bug #1358904 reported by Nikhil Komawar
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Harsh Shah

Bug Description

sqlalchemy/sql/default_comparator.py:35: SAWarning: The IN-predicate on "image_locations.id" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate. Consider alternative strategies for improved performance.
  return o[0](self, self.expr, op, *(other + o[1:]), **kwargs)

warning is shown.

Not sure if this is a bug, need some confirmation.

Revision history for this message
Nikhil Komawar (nikhil-komawar) wrote :

23:02:01 #openstack-glance: [ zhiyan] nikhil___: I had noticed that warning msg too before pushing the code. in short, I'm not sure if it's a bug in db.sqlalchemy implementation of location handling
                                      stuff, or it's just a particular case of fixture in testing.

Harsh Shah (hshah)
Changed in glance:
status: New → Confirmed
Revision history for this message
Harsh Shah (hshah) wrote :
Harsh Shah (hshah)
Changed in glance:
assignee: nobody → Harsh Shah (hshah)
Changed in glance:
importance: Undecided → Low
milestone: none → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Harsh Shah (<email address hidden>) on branch: master
Review: https://review.openstack.org/206791

Revision history for this message
Harsh Shah (hshah) wrote :

Fixed as part of this patch: https://review.openstack.org/#/c/113880/

Changed in glance:
status: Confirmed → Fix Committed
Changed in glance:
status: Fix Committed → 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.