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

Replace KillSessionsDuringPrepareDoesNotAbortTransaction with realistic test

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication

    Description

      KillSessionsDuringPrepareDoesNotAbortTransaction tests a concurrent abort while a transaction is being prepared. After SERVER-38810, this test is not realistic, since an operation must check out the session in order to modify TransactionParticipant state, so a concurrent operation cannot abort a transaction while it is being prepared. However, this test is our only unit test coverage that abortTransactionIfNotPrepared() does not abort prepared transactions. It would be valuable to replace this test with a test that demonstrates abortTransactionIfNotPrepared() does not abort prepared transactions.

      Attachments

        Activity

          People

            siyuan.zhou@mongodb.com Siyuan Zhou
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: