Async function passed to funWithArgs is not executed properly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2023-08-07
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Passing the following function to funWithArgs will not propagate the internal error:

      import { funWithArgs } from "jstests/libs/parallel_shell_helpers.js";
      
      const test = true;
      const awaitShell = startParallelShell(funWithArgs(async function(test) {
          throw new Error("intentionally thrown")
      }, test), undefined, true);
      
      awaitShell();
      

            Assignee:
            Matt Broadstone
            Reporter:
            Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: