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

Create guardrails for parallel shells against awaiting twice

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Labels:
      None
    • Linked BF Score:
      40
    • Story Points:
      2

      Description

      Currently, startParallelShell's returned await function can be called again, and multiple calls trip an invariant because the PID is no longer registered. This is expected, but we can make the error clearer by throwing a js-side exception.

      We could store a variable as a property of the function, accessed through arguments.callee to determine whether the function has been called before.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM)
            Reporter:
            carl.worley Raiden Worley
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: