[SERVER-19349] $type results are inconsistent with indexing enable on Infinity, -Infinity, NaN Created: 09/Jul/15 Updated: 19/Sep/15 Resolved: 28/Jul/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Querying |
| Affects Version/s: | 2.2.7, 2.4.14, 2.6.10, 3.1.5 |
| Fix Version/s: | 3.1.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Hatch | Assignee: | David Hatch |
| Resolution: | Done | Votes: | 0 |
| Labels: | dnsf | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: | In the shell:
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Executing a type query with indexing and without can result in different results for Infinity, -Infinity, NaN. The issue is in src/mongo/db/query/index_bounds_builder.cpp and caused by implementation of BSONElement.appendMin/MaxForType. |
| Comments |
| Comment by Githook User [ 28/Jul/15 ] |
|
Author: {u'username': u'dhatch', u'name': u'David Hatch', u'email': u'david.hatch@mongodb.com'}Message: |
| Comment by David Hatch [ 28/Jul/15 ] |
|
Although this corrects behavior, users relying on indexed find alls not finding Infinity/NaN with $type could see changes in their application. Seems unlikely to cause an issue. |
| Comment by Githook User [ 28/Jul/15 ] |
|
Author: {u'username': u'dhatch', u'name': u'David Hatch', u'email': u'david.hatch@mongodb.com'}Message: |