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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: