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

issue periodic warnings to the log while instance is locked

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • Storage NYC 2019-05-20

      For various reasons, including SERVER-1423 (which can prevent fsyncUnlock from being issued if the connection on which the fsyncLock is done is closed), or plain user error in coding scripts, a mongod instance can end up being locked unexpectedly for an extended time. When this happens the cause of the resulting symptoms can be difficult to diagnose, since the only evidence in the logs is typically an fsyncLock command, which may be far removed (e.g. in a different log file) from the time when the error is noticed.

      Since mongod instance being locked for an extended time is a potentially serious condition, and is likely unintended, it would be helpful for diagnosis if periodic warnings were issued to the log, e.g. "WARNING: instance is locked; all db writes and possibly all db reads will be blocked". Such a warning possibly as often as once per minute might be justified.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: