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

OplogSlotReserver must take a global IX lock

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Replication
    • None
    • ALL
    • Repl 2019-05-06, Repl 2019-05-20

    Description

      When the OplogSlotReserver reserves oplog slots here, it is not necessarily holding any locks. This could result in illegal usage – it's a requirement to hold a Global IX lock when reserving oplog slots in order to conflict with shutdown and recover to timestamp. We do typically hold locks when the oplog slots are reserved, but the locker is stashed in a SideTransactionBlock here, and the locks can be released before we release the oplog slot, e.g. here. Thus the OplogSlotReserver should acquire its own Global IX lock.

      Attachments

        Issue Links

          Activity

            People

              siyuan.zhou@mongodb.com Siyuan Zhou
              tess.avitabile@mongodb.com Tess Avitabile (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: