[SERVER-21285] currentOp ignores $near and $text predicates Created: 04/Nov/15 Updated: 06/Dec/22 Resolved: 26/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | query-44-grooming | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
The currentOp command (and the equivalent pseudocommand "inprog") incorrectly ignores any $near or $text predicates passed in as a filter. Instead, an error should be returned at parse time if these predicates are used. See, for example:
I believe that this behavior has existed since the introduction of the $text and $near predicates. |
| Comments |
| Comment by David Storch [ 26/Jul/19 ] | ||||||||||||||
|
This is fixed as of 4.2:
I suspect the fix is also present in older versions, but I did not confirm. Closing as Gone Away. |