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

Fix port_options.js to ensure mongod option parsing is occurring

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 4.0.0-rc0
    • 3.7.3
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-03-26, Platforms 2018-04-09, Platforms 2018-04-23
    • 44

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: