metaquery returns false positives

Bug #1236496 reported by gordon chung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Nadya Privalova

Bug Description

not sure if this actually affects real HBase impl or just test case but in test_list_meters_query_boolean_metadata, HBase does not recognize the difference between querying for 0 or False... it is returning positive for all 'logical' matches rather than 'literal'

Julien Danjou (jdanjou)
Changed in ceilometer:
status: New → Triaged
importance: Undecided → Low
gordon chung (chungg)
Changed in ceilometer:
assignee: nobody → gordon chung (chungg)
Changed in ceilometer:
status: Triaged → Confirmed
Revision history for this message
Nadya Privalova (nprivalova) wrote :

Looks like this problem is not only HBase related. Query like q=[{'field': 'metadata.is_public', 'op': 'eq', 'value': 'any_value', 'type': 'boolean'}]) in the test Gordon mentioned works ok for all backends

gordon chung (chungg)
Changed in ceilometer:
assignee: gordon chung (chungg) → Nadya Privalova (nprivalova)
Revision history for this message
Nadya Privalova (nprivalova) wrote :

The problem is in string-to-boolean convertation and relates to all backends. We need to enhance validation in case of type=boolean in query

summary: - hbase metaquery returns false positives
+ metaquery returns false positives
Revision history for this message
gordon chung (chungg) wrote :

i believe this patch was fixed here: https://review.openstack.org/#/c/71262

marking as fix committed.

Changed in ceilometer:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: icehouse-3 → 2014.1
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.