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

Investigate if createIndexes is holding a global exclusive lock during oplog application

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication
    • ALL

      In 3.6 we started replicating createIndexes as a command. Commands get applied under the global exclusive lock: https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/sync_tail.cpp#L394-L405.

      I think this means we're now applying createIndexes oplog entries under a global exclusive lock which could take a long time.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: