Fix shutdown method on ShardingTest to work with authentication on windows

XMLWordPrintableJSON

    • Windows
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      auth1.js fails on 32-bit Windows. This is because we attempt to shut down a server. Since we can't send a signal like we can on Linux, the shutdown code simply sends a shutdown command to the server over the wire. This doesn't work because authentication is on, and the code does not currently authenticate to send a shutdown command. The code ignores the error status and eventually times out; it then deletes the process. On 64-bit Windows, upon mongod restart the server uses the journal to recover and the test continues. On 32-bit Windows the journal is off by default, so the test fails when mongod fails to restart.

            Assignee:
            Mark Benvenuto
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: