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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: 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} )
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Xiangyu Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: