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

Check _isWindows() when initializing MongoRunner.EXIT_ABORT

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0, 4.4.2, 4.2.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Repl 2020-09-07, Repl 2020-09-21, Repl 2020-10-05

      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.

       

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

              Created:
              Updated:
              Resolved: