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

MongoDB service on Windows infinitely restarts when server goes down abnormally

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows Server 2003R2 32-bit
    • Windows

      This is a Windows-specific problem. After hard crash (actually I intentionally pulled the power plug on the test machine), MongoDB service got stuck in the "Starting" phase infinitely trying to start complaining about "old lock" (yes, the journalling is also turned off). I suggest there should be either a limit for autorestarts (I ended up with several gigabytes worth of logfiles filled with "start, oh-there's-an-old-lock-file, stop") on such failures or no autorestarts at all, at least for problems that aren't going to solve themselves. The existing SysV init.d script behavior looks fine to me, autorestarting on failing to obtain a lock or bind to an interface doesn't look to improve robustness under Windows, especially getting out of the "Starting" state ain't that easy.

            Assignee:
            tad Tad Marshall
            Reporter:
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: