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

Replace KillSessionsDuringPrepareDoesNotAbortTransaction with realistic test

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication

      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.

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

              Created:
              Updated:
              Resolved: