[SERVER-39764] Negation of $in with embedded array can incorrectly plan from the cache, triggering invariant Created: 22/Feb/19 Updated: 29/Oct/23 Resolved: 18/Mar/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.1.8 |
| Fix Version/s: | 4.0.9, 4.1.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | James Wahlin | Assignee: | Ian Boros |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | afz | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v4.0
|
||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||
| Sprint: | Query 2019-03-11, Query 2019-03-25 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 67 | ||||||||||||||||||||
| Description |
|
This issue started with the commit for To address we will likely want to modify the plan cache to discriminate between distinguish between array and non-array values for {$not: {$in: ...}} entries. The invariant triggered is:
|
| Comments |
| Comment by Kelsey Schubert [ 05/Apr/19 ] |
|
This issue doesn't result in an invariant in any stable release. |
| Comment by Githook User [ 03/Apr/19 ] |
|
Author: {'email': 'puppyofkosh@gmail.com', 'name': 'Ian Boros', 'username': 'puppyofkosh'}Message: |
| Comment by Ian Boros [ 18/Mar/19 ] |
|
We should do this backport at the same time as BACKPORT-3837. |
| Comment by Githook User [ 18/Mar/19 ] |
|
Author: {'name': 'Ian Boros', 'username': 'puppyofkosh', 'email': 'puppyofkosh@gmail.com'}Message: |