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

relax locking mode in applyOps when applying CRUD-only ops non-atomically

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.9, 3.5.12
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      Repl 2017-08-21

      Description

      With SERVER-29802, we can run multiple applyOps on the same server concurrently if we use

      {allowAtomic: false}

      and apply only CRUD. In this mode, applyOps() uses MODE_X to lock the database before calling applyOperation_inlock(). This does not take advantage of storage engines that support document level concurrency.

      This ticket proposes to relax the locking rules in applyOps() to use MODE_IX instead of MODE_X when applying CRUD-only workloads non-atomically.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: