Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1638

fsyncLock/Unlock pages should warn about nested calls to fsyncLock

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      Calling fsyncLock multiple times without calling fsyncUnlock in between can cause a race condition and block a node until the process is restarted, see SERVER-6302.

      Until the bug is fixed, users should be warned in the documentation for fsyncLock and fsyncUnlock that this can happen and advise against calling fsyncLock repeatedly. A work-around (inspecting if a node is locked before locking) is given on the server ticket.

      A common use case is to run automated backup scripts repeatedly (e.g. cron jobs). If the backup doesn't finish before the next one is scheduled, these kinds of nested calls can happen.

            Assignee:
            Unassigned Unassigned
            Reporter:
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 45 weeks, 2 days ago