Prevent mongoshell from running quit()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • ALL
    • 2025-03-04, 2025-03-18, Correctness 2025-04-29, Correctness 2025-05-09, Correctness 2025-06-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Original slack thread: https://mongodb.slack.com/archives/C07T35KELLC/p1736798703090199

       

      The mongo shell does not clean up child processes correctly when quit() is used in jstests. When quit() Is used it just makes the shell exit 0 instantly and does not run the cleanup code here. We need to add/user some new function instead of quit() and ban the use of quit() in jstests.

            Assignee:
            Eric Lavigne
            Reporter:
            Trevor Guidry
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: