diff options
author | Randolph Tan <randolph@10gen.com> | 2018-12-12 17:58:38 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2019-02-28 17:33:31 -0500 |
commit | c5f474e0728ab6cd75e23ce9f343cc20ac3c1f14 (patch) | |
tree | 586ef9a1da73625f4ac817900bd2abca647e0a9c /jstests/sharding | |
parent | 78d82f7dab0efcf651535665703ae1f80e759605 (diff) | |
download | mongo-c5f474e0728ab6cd75e23ce9f343cc20ac3c1f14.tar.gz |
SERVER-37972 Create suite for running multi shard jscore with sharded transactions with kill
Diffstat (limited to 'jstests/sharding')
-rw-r--r-- | jstests/sharding/txn_two_phase_commit_failover.js | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/jstests/sharding/txn_two_phase_commit_failover.js b/jstests/sharding/txn_two_phase_commit_failover.js index 9e7f7fb191a..0ebc87e3fbb 100644 --- a/jstests/sharding/txn_two_phase_commit_failover.js +++ b/jstests/sharding/txn_two_phase_commit_failover.js @@ -216,12 +216,18 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true; // failpointDataArr.forEach(function(failpointData) { - if (overrideCoordinatorToBeConfigServer && - failpointData.failpoint == "hangWhileTargetingLocalHost") { - // If the coordinator is overridden to be the config server, it will never target - // itself, so don't test the target local path. - return; + if (overrideCoordinatorToBeConfigServer) { + if (failpointData.failpoint == "hangWhileTargetingLocalHost") { + // If the coordinator is overridden to be the config server, it will never + // target itself, so don't test the target local path. + return; + } else if (failpointData.failpoint == "hangBeforeDeletingCoordinatorDoc") { + // If the coordinator is overridden to be the config server, it will never + // delete the coordinator document, so skip this test. + return; + } } + testCommitProtocol(true /* make a participant abort */, failpointData, true /* expect abort decision */); @@ -239,7 +245,12 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true; // If the coordinator is overridden to be the config server, it will never // target itself, so don't test the target local path. return; + } else if (failpointData.failpoint == "hangBeforeDeletingCoordinatorDoc") { + // If the coordinator is overridden to be the config server, it will never + // delete the coordinator document, so skip this test. + return; } + // Note: If the coordinator fails over before making the participant list durable, // the transaction will abort even if all participants could have committed. This is // a property of the coordinator only, and would be true even if a participant's |