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

Make serverExitCodeMap useful to detect if server crashed on startup before connection established

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6
    • Sprint:
      TIG 2018-04-23
    • Linked BF Score:
      56

      Description

      It is possible for the same pid to be assigned to processes spawned at different points in time during a test. The way serverExitCodeMap is implemented makes it so that checking the exit code of the process in MongoRunner.stopMongod() may see the wrong exit code for the process which was just spawned.


      Original description

      MongoRunner.stopMongod should explicitly check for exit code 100 on instances where it is expected to fail with non-zero exit code.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              robert.guo Robert Guo
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: