Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-9267

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

    • Type: Icon: Investigation Investigation
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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 Unassigned
            Reporter:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: