Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37378

Prevent $out to the same namespace as the aggregation for the new modes

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.5
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Query 2018-11-05, Query 2018-11-19

      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.

            Assignee:
            devin.hilly@mongodb.com Devin Hilly (Inactive)
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: