[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:
Depends
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: SERVER-43962 Assert on valid target namespace in $out/$merge static create methods
Branch: master
https://github.com/mongodb/mongo/commit/8dfa17e159b3c0913e262d7a8bbe444b425ab16f

Generated at Thu Feb 08 05:04:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.