[SERVER-45508] Invariant failure in getFieldsWithStringBounds with descending point ranges Created: 10/Jan/20 Updated: 29/Oct/23 Resolved: 22/Jan/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.6, 4.3.3, 4.0.19, 3.6.19 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Percy | Assignee: | David Percy |
| 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.2, v4.0, v3.6
|
||||||||
| Sprint: | Query 2020-01-27 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
It looks like the necessary ingredients to repro are:
|
| Comments |
| Comment by Githook User [ 28/May/20 ] |
|
Author: {'name': 'David Percy', 'email': 'david.percy@mongodb.com', 'username': 'dpercy'}Message: |
| Comment by Githook User [ 22/Apr/20 ] |
|
Author: {'name': 'David Percy', 'email': 'david.percy@mongodb.com', 'username': 'dpercy'}Message: |
| Comment by Githook User [ 31/Mar/20 ] |
|
Author: {'name': 'David Percy', 'email': 'david.percy@mongodb.com', 'username': 'dpercy'}Message: |
| Comment by Githook User [ 22/Jan/20 ] |
|
Author: {'username': 'dpercy', 'name': 'David Percy', 'email': 'david.percy@mongodb.com'}Message: |
| Comment by Vlad Rachev (Inactive) [ 14/Jan/20 ] |
|
Makes sense, I had downloaded a binary from the mac-debug build. |
| Comment by David Percy [ 14/Jan/20 ] |
|
This invariant is only checked in debug builds, which may be one reason why it hasn't come up yet. In a non-debug build, instead of a crash the planner could choose an index that results in the wrong sort order or bounds, for a string field. |