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

After an upgrade, --shutdown fails to shutdown the old version of mongod

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.0.3
    • 2.0.5, 2.1.1
    • Shell, Usability
    • None
    • 64bit archlinux
    • Fully Compatible
    • Linux

    Description

      1. have mongodb 2.0.3 installed.
      2. run the daemon with sudo rc.d start mongodb
      3. upgrade mongodb to 2.0.4
      4. try to stop the daemon with sudo rc.d stop mongodb

      It prints FAIL and in /var/log/mongodb/mongod.log I get:
      "Process 3604 is running /usr/bin/mongod (deleted) not mongod"

      The problem here is the line at:
      https://github.com/mongodb/mongo/blob/master/src/mongo/db/db.cpp#L1043
      "else if (!endsWith(buf, "mongod")){"
      My buf ends with "mongod (deleted)"

      Note, the daemon is using the mongod --shutdown flag to stop the daemon.

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            td123 Thomas Dziedzic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: