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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.4.9, 3.5.12
    • None
    • 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

        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: