diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2022-03-18 21:46:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-18 22:46:50 +0000 |
commit | 436c8f095710ffd5f582eafd063db635a93a77c0 (patch) | |
tree | 88dff33ea17163c7db25b3ef0111798ab5f21cc9 /jstests/sharding/txn_two_phase_commit_failure.js | |
parent | 8da816728d4cb62d4da80e8e3be360f22d0579a7 (diff) | |
download | mongo-436c8f095710ffd5f582eafd063db635a93a77c0.tar.gz |
SERVER-64658 Increase transactionLifetimeLimitSeconds in txn_two_phase_commit_failure.js
Diffstat (limited to 'jstests/sharding/txn_two_phase_commit_failure.js')
-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; |