[COMPASS-5956] Embedded mongosh script interrupt not interrupting loop reported Created: 13/Jul/22  Updated: 23/Mar/23

Status: Open
Project: Compass
Component/s: Embedded Shell
Affects Version/s: 1.32.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Felicia Hsieh Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongosh 1.5.0
Compass 1.32.3
Mac 12.4


Issue Links:
Duplicate
Related
Story Points: 8

 Description   

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


Generated at Wed Feb 07 22:41:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.