[SERVER-43962] MapReduce aggregation translation does not validate output namespace Created: 11/Oct/19 Updated: 29/Oct/23 Resolved: 15/Oct/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Nicholas Zolnierz |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Linked BF Score: | 9 | ||||
| Description |
|
While its true that we won't hit this particular invariant anymore, there is still an issue with the output options parser in the new MR implementation. When building the agg pipeline from an MR, we bypass the "lite parsed" version of the DocumentSources, which has the unintentional consequence of bypassing several parse-time checks such as this one in $out. We should either move/duplicate the assertions to the normal DocumentSourceOut/Merge parsers or attempt to catch them in the translation layer before building the pipeline. |
| Comments |
| Comment by Githook User [ 14/Oct/19 ] |
|
Author: {'username': 'nzolnierzmdb', 'email': 'nicholas.zolnierz@mongodb.com', 'name': 'Nicholas Zolnierz'}Message: |