[SERVER-37378] Prevent $out to the same namespace as the aggregation for the new modes Created: 28/Sep/18 Updated: 29/Oct/23 Resolved: 08/Nov/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.5 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Devin Hilly (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Query 2018-11-05, Query 2018-11-19 | ||||||||
| Participants: | |||||||||
| Description |
|
To avoid a "Halloween Problem" scenario, we will prevent writing to a collection with $out while simultaneously reading from that collection as the source aggregation collection. An exception will be made when the mode is "replaceCollection", because the use of a temporary namespace prevents an infinite loop of reads and writes. |
| Comments |
| Comment by Githook User [ 08/Nov/18 ] |
|
Author: {'name': 'Devin Hilly', 'email': 'devin.hilly@mongodb.com', 'username': 'dmhilly'}Message: |