Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50072

Check _isWindows() when initializing MongoRunner.EXIT_ABORT

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.8.0, 4.4.2, 4.2.11
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Repl 2020-09-07, Repl 2020-09-21, Repl 2020-10-05

    Description

      std::abort() on Windows returns a different exit code than other platforms, and so when we expect a process to be aborted, we first consult _isWindows before passing in the expected exit code (Either MongoRunner.EXIT_ABORT or MongoRunner.EXIT_ABRUPT). Here is an example of this in the test oplog_replay_on_startup_with_bad_op.js

      Instead, we should check _isWindows when MongoRunner.EXIT_ABORT is initialized in servers.js similarly to how MongoRunner.SIGKILL is initialized here.

       

      Attachments

        Activity

          People

            ali.mir@mongodb.com Ali Mir
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: