calling sleep in the mongosh freezes the shell and won't finish

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 5
    • None
    • Developer Tools

      Problem Statement/Rationale

      Opening a connection to any cluster, opening the mongosh tab and running the following script:

      sleep(1)
      

      Freezes mongosh.

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Expected Results

      What do you expect to happen?
      It should wait for the specified time and get back to the user to continue prompting.

      Actual Results

      What do you observe is happening?
      Freezes with a loading spinner and never finishes.

      Additional Notes

      Any additional information that may be useful to include.

              Assignee:
              Unassigned
              Reporter:
              Kevin Mas Ruiz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: