Commit Graph

4 Commits

Author SHA1 Message Date
Jack Mulrow
aacd508f50 SERVER-31941 Don't run retryable writes tests with ephemeralForTest storage engine 2017-11-21 14:46:24 -05:00
Jack Mulrow
97af8701b5 SERVER-31941 Disallow retryable writes in storage engines that do not support document-level locking 2017-11-17 16:01:19 -05:00
Jason Carey
bf53cbe298 SERVER-31777 deactivate logical sessions for fcv34
For anything less than fully upgraded to 3.6:
* suppress logicalSessionTimeoutMinutes in isMaster
* fail any commands that passes lsid
2017-11-09 18:35:00 -05:00
Max Hirschhorn
6d8e6b9cce SERVER-31296 Update sessions, causal, and retryable in the mongo shell.
* Removes the initialClusterTime and initialOperationTime session
    options.

  * Enables causal consistency by default when using an explicit
    session.

  * Adds a --retryWrites command line option to the mongo shell for
    enabling retryable writes in the mongo shell. The retryWrites
    options to SessionOptions is left for convenience with testing.

  * Renames setClusterTime() to advanceClusterTime(), and adds a
    corresponding advanceOperationTime() method to DriverSession.

  * Enables assigning transaction numbers for write commands where
    ordered=false.

  * Prevents the mongo shell from sending afterClusterTime or assigning
    transaction numbers when talking to a stand-alone mongod.

  * Prevents the mongo shell from assigning transaction numbers when
    using an unacknowledged (w=0) writeConcern.

  * Changes DBClientRS to re-discover the current primary of the replica
    set when it receives an error code representing "not master" in
    addition to an error message representing "not master".

  * Adds a shellPrint() pretty-printer for SessionOptions and
    DriverSession instances so they no longer print out their entire
    object definition.
2017-11-08 19:29:28 -05:00