Check if transaction is in progress before aborting it in scopeGuard in `runWithTransactionsFromOpCtx() `

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0, 7.1.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.1, v7.0, v6.0, v5.0
    • Sharding NYC 2023-09-04, Sharding NYC 2023-09-18
    • 135
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The scopeGuard in runWithTransactionsFromOpCtx() needs to check if the transaction is in progress before aborting it. Otherwise it can cause an issue where an already committed transaction is aborted. See BF-29758 for the full explanation. 

              Assignee:
              Wenqin Ye
              Reporter:
              Wenqin Ye
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: