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

Check _isWindows() when initializing MongoRunner.EXIT_ABORT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0, 4.4.2, 4.2.11
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      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

            Assignee:
            ali.mir Ali Mir
            Reporter:
            ali.mir Ali Mir
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: