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

db.shutdownServer() does not empty mongod.lock

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.2.2
    • Component/s: None
    • None
    • Environment:
      2.2.2 linux
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      on version 2.2.2:
      db.shutdownServer() does NOT empty mongod.lock.
      but on 2.4.3, it does empty the lock file.

      The problem I experienced is:
      If mongod.lock not clean, "numactl --interleave=all mongod -f xx" failed to start, but "mongod -f xx" works fine.

      Thu May 30 13:10:49 [initandlisten] exception in initAndListen: 10310 Unable to lock file: /u10/mongodata/27017/mongod.lock. Is a mongod instance already running?, terminating
      Thu May 30 13:10:49 dbexit:

      My question is:
      Is this a bug and fixed in 2.4.x?
      Is there a workaround for this problem?

      Thanks
      Jack

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            jack.zhang@priceline.com Jack Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: