Check _isWindows() when initializing MongoRunner.EXIT_ABORT

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: