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

Add way to use transaction API without an initial opCtx

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Sharding 2022-05-02, Sharding NYC 2022-05-16, Sharding 2022-06-27, Sharding NYC 2023-06-26, Sharding NYC 2023-07-10, Sharding NYC 2023-07-24, Sharding NYC 2023-08-07, Sharding NYC 2023-08-21, Sharding NYC 2023-09-04, Sharding NYC 2023-09-18, Sharding NYC 2023-10-02, Sharding NYC 2023-10-16, Sharding NYC 2023-10-30, Cluster Scalability 2023-11-13, Cluster Scalability 2023-11-27
    • 5

      Currently the transaction API requires an operation context that it infers its execution context from, e.g. if the opCtx has a txnNumber but is not in a multi document transaction, then the API uses a retryable child session for its transaction with the opCtx's txnNumber in the session id.

      If a caller has no operation context, e.g. the transaction comes from a primary only service, there should be a way to use the API that does not require an opCtx.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: