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

Fix port_options.js to ensure mongod option parsing is occurring

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 4.0.0-rc0
    • Affects Version/s: 3.7.3
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 2018-03-26, Platforms 2018-04-09, Platforms 2018-04-23
    • 44

      port_options.js isn't testing what it thinks it's testing.
      It sends SIGTERM before mongod has installed its sighandlers, so mongod dies with that signal. But if mongod has installed its sighandlers, it shuts down normally from the SIGTERM and we should expect clean shutdown. Gabriel has suggested watching the mongod output stream to determine when it's installed its signal handlers, parsed its command options, and is ready to be killed.

      ----------
      Originally read:

      Fix port_options.js to deal with a child process dying with SIGKILL.
      Currently it only expects SIGTERM. If a SIGKILL happens to the child for some reason, that's unexpected. But what we should do in that case is die, not fail an assert.

      This addresses BF-7447, which is happening too often.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: