[SERVER-18341] Matcher returns false positives in comparison predicates with MinKey/MaxKey Created: 06/May/15 Updated: 19/Aug/20 Resolved: 02/Jul/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.1, 4.0.21 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | Minji Kim |
| Resolution: | Done | Votes: | 2 |
| Labels: | QFB, neweng, storch | ||
| 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, v3.6
|
||||||||||||||||||||||||
| Sprint: | Query 2018-07-02, Query 2018-07-16 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
For any field "a", the matcher falsely considers all documents (with the exception of {a: MaxKey} and {a: MinKey}) as matching the following predicates:
Reproduce with the following shell snippet. The assertion on the last line fails.
This is a regression introduced in 2.3.0 by e1085e54 ( |
| Comments |
| Comment by Githook User [ 14/Aug/20 ] |
|
Author: {'name': 'Minji', 'email': 'minjikim0202@gmail.com', 'username': 'minjikim0202'}Message: (cherry picked from commit b5291b87ab3350bff9bd9ef4464a63dcda81ac21) |
| Comment by Githook User [ 02/Jul/18 ] |
|
Author: {'username': 'minjikim0202', 'name': 'Minji', 'email': 'minjikim0202@gmail.com'}Message: |
| Comment by James Lindberg [ 26/Oct/17 ] |
|
Is there any update on this? It is quite alarming behavior given how unambiguous the documentation is: If this issue will not be fixed, could the documentation be updated? |