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

Remove stmtId from internal session id for retryable internal transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Sharding 2021-10-18
    • 2

      Per the latest version of the design, retryable internal transactions will run in internal sessions with lsid of the form (id, uid, txnNumber, txnUUID) as supposed to (id, uid, txnNumber, stmtId). So we should:

      • Remove stmtId from the InternalSessionFields struct.
      • Make getParentSessionId only check for txnUUID.
      • Update unittests and jstests that use lsids of the form (id, uid, txnNumber, stmtId). 

            Assignee:
            jonathan.lee@mongodb.com Jonathan Lee
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: