diff options
-rw-r--r-- | jstests/sharding/txn_two_phase_commit_failure.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/sharding/txn_two_phase_commit_failure.js b/jstests/sharding/txn_two_phase_commit_failure.js index 0d5bb5b0831..477c0524d29 100644 --- a/jstests/sharding/txn_two_phase_commit_failure.js +++ b/jstests/sharding/txn_two_phase_commit_failure.js @@ -13,8 +13,11 @@ const dbName = "test"; const collName = "foo"; const ns = dbName + "." + collName; -// The test should not depend on a particular timeout, but shorter timeout makes it faster. -TestData.transactionLifetimeLimitSeconds = 10; +// Lower the transaction timeout for participants, since this test exercises the case where the +// coordinator hangs before writing the participant list and then checks that the transaction is +// eventually aborted on the coordinator, and the coordinator will only abort on reaching the +// transaction timeout. +TestData.transactionLifetimeLimitSeconds = 30; let lsid = {id: UUID()}; let txnNumber = 0; |