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

Embedded mongosh script interrupt not interrupting loop reported

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.32.3
    • Component/s: Embedded Shell
    • None
    • Environment:
      mongosh 1.5.0
      Compass 1.32.3
      Mac 12.4
    • 8

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Embedded mongosh script in Compass doesn't stop in loop when interrupt attempted.

      Please be sure to attach relevant logs with any sensitive data redacted.

      Steps to Reproduce

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

      Create a function using for loop or while loop in embedded mongosh. Add console output to confirm loop is ongoing.

      Run the script

      Try to exit with typical quitting key presses, ctrl-c, ctrl-z, etc

      Expected Results

      What do you expect to happen?

      Process to stop.

      Actual Results

      What do you observe is happening?

      Only exiting Compass application stops the process (ctrl-q).

      However, process stops as expected in standalone mongosh 1.5

      Additional Notes

      Any additional information that may be useful to include.

      Investigating foreach loop as well

            Assignee:
            Unassigned Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: