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

Results of async functions are lost when executing in parallel shell

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2023-08-07

    Description

      If you run the following code

      startParallelShell(async () => {
          throw new Error('intentionally thrown');
      }, undefined, true)();
      

      the shell will print a {} result, and report that the parallel shell completed successfully.

      Attachments

        Activity

          People

            matt.broadstone@mongodb.com Matt Broadstone
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: