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

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.9, 3.5.12
    • Replication
    • None
    • Fully Compatible
    • 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

              benety.goh@mongodb.com Benety Goh
              benety.goh@mongodb.com Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: