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

Test that $out cannot be run in combination with stages which must run on mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.7
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Fully Compatible
    • Query 2018-12-17

      For example, the following pipeline is illegal and should error:

      db.aggregate([{$listLocalSessions: {}}, {$out: "test"}])
      

      I couldn't find any such test, but I believe this works and we just need to add a test for it.

            Assignee:
            jacob.evans@mongodb.com Jacob Evans
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: