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() `

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0, 7.1.0-rc2
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v7.1
    • Sharding NYC 2023-09-04, Sharding NYC 2023-09-18
    • 135

    Description

      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. 

      Attachments

        Activity

          People

            wenqin.ye@mongodb.com Wenqin Ye
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: