[SERVER-2302] if a field has a regular filter and $ors, index breaks in Created: 29/Dec/10 Updated: 12/Jul/16 Resolved: 16/May/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
db.testcase.drop(); , { x : 2 }, { x : 3 }, { x : 4 }] } ) function test(){ , } , { a : { x : 3 } } ] // The first find will return a result since there isn't an index // Now create an index db.testcase.ensureIndex( {"a":1}) // The same query will not return data now // Drop the indexes db.testcase.dropIndexes() // And it will return data again |
| Comments |
| Comment by Aaron Staple [ 16/May/11 ] |
|
Addressed in the |
| Comment by Aaron Staple [ 25/Apr/11 ] |
|
Actually for this jira: Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by Eliot Horowitz (Inactive) [ 17/Mar/11 ] |
|
Lets do the other case first and see if this falls out. |
| Comment by Aaron Staple [ 10/Feb/11 ] |
|
Just to be clear, I'm not advocating the above as a permanent fix, but a temporary measure so we don't have incorrect results near term. What I proposed seems like the simplest of the quick fix options. |
| Comment by Aaron Staple [ 10/Feb/11 ] |
|
It sounds like we want to do a bunch of refactoring before |
| Comment by Aaron Staple [ 29/Dec/10 ] |
|
If the fix is urgent I could probably do something more quickly though. |
| Comment by Eliot Horowitz (Inactive) [ 29/Dec/10 ] |
|
I mean in 1.9.0, backported to 1.8.1 likely. |
| Comment by Aaron Staple [ 29/Dec/10 ] |
|
This kind of sucks, but it's not trivial to fix. A fixed implementation would have a lot in common with the Did you mean 1.8.1 in your comment or 1.9.1? |
| Comment by Eliot Horowitz (Inactive) [ 29/Dec/10 ] |
|
Take a look for 1.7.5 |