[SERVER-1373] group $keyf function error should be passed to the client Created: 07/Jul/10 Updated: 21/Feb/17 Resolved: 21/Feb/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, MapReduce |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristina Chodorow (Inactive) | Assignee: | David Storch |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Doing a group with an invalid key function (such as 'function(doc) { return {"x" : 1}', which is missing a '}') gives this in the log: conn1 Wed Jul 7 10:06:45 JS Error: SyntaxError: missing } in compound statement nofile_b:0 conn1 Wed Jul 7 10:06:45 end connection 127.0.0.1:57423 But it doesn't pass any sort of error back to the client, leading to confusing results. |
| Comments |
| Comment by David Storch [ 21/Feb/17 ] |
|
The group command was deprecated in version 3.4, as noted in our documentation here: https://docs.mongodb.com/manual/reference/command/group/. We are not planning to work on improvements to the group command, so I am closing this ticket as Won't Fix. |