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

Disallow retryable writes in storage engines which do not support document-level locking

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc5, 3.7.1
    • Affects Version/s: 3.6.0-rc3
    • Component/s: Sharding
    • Fully Compatible
    • v3.6
    • Sharding 2017-12-04
    • 0

      While retryable writes works in MMAPV1, due to the collection-level locking its performance is so bad that it cannot be used in practice. Because of this, we should disable retryable writes if StorageEngine::supportsDocLocking() == false.

      The effective behaviour should be that if the storage engine doesn't support document-level locking, any requests which include a txnNumber should fail with code UnsupportedOperation.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: