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

Allow abortTransaction or commitTransaction as first statement in transaction

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.6
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2018-04-23, Repl 2018-05-07

    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

        Activity

          People

            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: