Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1042

Shell swallows { background: true } options to aggregate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: No version
    • Component/s: Shell API
    • Labels:
      None
    • Documentation Changes:
      Not Needed

      Description

      Problem Statement/Rationale

      What is going wrong?
      When background: true is specified as an option to aggregate, the mongosh shell swallows it and doesn't include it in the generated aggregate command that's sent to the server. This doesn't happen with the old mongo shell.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?
      Run a command such as the following:

      db.foo.aggregate([{ $out: { s3: { bucket: "david.golub", region: "us-east-1", filename: "bgtest", format: { name: "json" } } } }], { background: true })
      

      Expected Results

      What do you expect to happen?
      The aggregate command sent to the server should include background: true.

      Actual Results

      What do you observe is happening?
      The command sent to the server omits background: true.

      Additional Notes

      Any additional information that may be useful to include.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golub David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: