Consistent Oplog Locking Rules

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0, 4.4.2
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • v4.4
    • Repl 2020-03-09, Repl 2020-03-23
    • 23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In principle we should only need the Global IS/IX lock to read/write the oplog. However, see SERVER-44906, we're inconsistent. Furthermore, there are cases our code requires a DB and Collection lock in order to get a Collection pointer to the oplog, although this is not fundamentally necessary.

      Inconsistent locking invites mistakes: deadlocks, race conditions, and unnecessary waiting.

            Assignee:
            Lingzhi Deng
            Reporter:
            TPM Jira Automations Bot
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: