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

Shell swallows { background: true } options to aggregate

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • No version
    • Shell API
    • None
    • 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

            Unassigned Unassigned
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: