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

Transaction starting with getMore() is not able to take snapshot readConcern

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: Needs Triage
    • Component/s: Replication
    • None
    • ALL
    • Hide

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

      {getMore: cursorID, collection: collName, batchSize: 2}

      )

      Show
      session.startTransaction({readConcern: {level: "snapshot"}}) sessionDb.runCommand( {getMore: cursorID, collection: collName, batchSize: 2} )

      We always attach the first statement of the transaction with the readConcern. Imagine a case we want to start a transaction with a getMore() command. The server will give an error "Command does not support read concern snapshot".

      Please feel free to close this if it is not a concern.

            Assignee:
            Unassigned Unassigned
            Reporter:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: