[SERVER-43286] Prevent mapReduce from outputting to system collections Created: 11/Sep/19  Updated: 29/Oct/23  Resolved: 09/Mar/20

Status: Closed
Project: Core Server
Component/s: MapReduce
Affects Version/s: None
Fix Version/s: 4.4.0

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Backlog - Query Team (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-43287 Prevent $merge from outputting to sys... Closed
is related to SERVER-39122 Enforce schema on system collections Closed
Assigned Teams:
Query
Backwards Compatibility: Fully Compatible
Participants:

 Description   

In some manual tests it seemed like it was not possible to output to "system.views" since we prevent renaming to/from that collection. However I was able to output to "system.js" and there's no enforcement that the schema matches (see also SERVER-39122).

This doesn't really sound like a "feature" and I think should be disallowed. $out does not allow outputting to system collections.



 Comments   
Comment by Charlie Swanson [ 09/Mar/20 ]

This is no longer a problem after completing a recent project where we created a new implementation of mapReduce backed by the aggregation framework.

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