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

Allow abortTransaction or commitTransaction as first statement in transaction

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.6
    • Component/s: Replication
    • Labels:
      None

      Description

      session.startTransaction({readConcern: {level: "snapshot"}})
      session.abortTransaction()
      

      [js] Error: command failed: {
              "operationTime" : Timestamp(1522790291, 1),
              "ok" : 0,
              "errmsg" : "Command does not support read concern { readConcern: { level: \"snapshot\" } }",
              "code" : 72,
              "codeName" : "InvalidOptions",
              "$clusterTime" : {
                      "clusterTime" : Timestamp(1522790291, 1),
                      "signature" : {
                              "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                              "keyId" : NumberLong(0)
                      }
              }
      } :
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: