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

Allow suites using txn_override.js to run transactions without causal consistency

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.7
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2018-12-17, Sharding 2018-12-31

      Description

      Several suites use txn_override.js to bundle operations in jscore tests into multi-statement transactions, which involves attaching a read concern to the first command in each bundle so it can start a transaction. The override checks if an operationTime exists on the default session for a database and attaches it as afterClusterTime in the command's readConcern if it does. All sessions track operationTime, so this value will almost always be set and almost all transactions started by the override will be using causal consistency.

      Causal consistency is not required to read your own writes if all reads and writes are sent to the same node without failovers, which is guaranteed in several of these passthroughs, so modifying the override to allow disabling causal consistency and doing so in the passthroughs where it is not required would increase coverage of transactions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jack.mulrow Jack Mulrow
              Reporter:
              jack.mulrow Jack Mulrow
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: