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

Make txn_two_phase_commit_killop.js not kill prepareTransaction on the coordinator

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.9
    • Sharding 2021-04-05, Sharding 2021-04-19
    • 44

    Description

      The way that the test finds the pids for the operations to kill is through a $currentOp aggregation command with query {desc: "TransactionCoordinator"}. The command can return the pid for the prepareTransaction operation on the coordinator shard itself. Killing that operation is expected to cause the transaction to abort. The currentOp entry for the prepareTransaction operation should have the command obj inside the "command" so we can make use of this property to filter out its pid.

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: