[SERVER-13307] Server crash when a predicate inside $elemMatch value is not indexable Created: 21/Mar/14 Updated: 11/Jul/16 Resolved: 24/Mar/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.5.5, 2.6.0-rc1 |
| Fix Version/s: | 2.6.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Steve Duan | Assignee: | David Storch |
| Resolution: | Done | Votes: | 1 |
| Labels: | query | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mac os x |
||
| Issue Links: |
|
||||||||
| Operating System: | OS X | ||||||||
| Participants: | |||||||||
| Description |
|
The $elemMatch value is considered indexable, causing the server to erroneously try to build index bounds for the "$size: 3" predicate.
|
| Comments |
| Comment by Githook User [ 24/Mar/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: (cherry picked from commit 9713848c54f3a0a25f9682d21a35179e6b8a3a86) |
| Comment by Githook User [ 24/Mar/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |
| Comment by David Storch [ 21/Mar/14 ] |
|
Hi Steve, thanks for the bug report. I was able to reproduce this locally. I am going to replace the description of this ticket with the repro and get this triaged. |
| Comment by Steve Duan [ 21/Mar/14 ] |
|
i'm still seeing this assert with latest code as of 03/21/2014. db version v2.7.0-pre- git version: 63fbd2ff4dbe5c80ad2c5ac1b35bc5b06e98a14b 2014-03-21T12:17:16.416-0400 [conn29] test.correctness0.878168563729 Assertion failure 0 src/mongo/db/query/index_bounds_builder.cpp 543 } }, $orderby: { 2: -1, A: 1 } } |