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

Rewrite `txn_two_phase_commit_killop.js` and `txn_two_phase_commit_failover.js` as unit-tests

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Sharding

    Description

      The txn_two_phase_commit_killop.js and txn_two_phase_commit_failover.js tests are inscrutable and rely on an exact number of times certain strategically placed failpoints are hit and show up in the log.

      These tests would be much better if implemented as unit-tests of the TransactionCoordinator's logic.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: