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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Wenqin Ye
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: