summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chan <jason.chan@10gen.com>2019-03-29 16:46:49 -0400
committerJason Chan <jason.chan@10gen.com>2019-03-29 16:47:14 -0400
commit7c897a1160105a01057f562f6dfe06888590e086 (patch)
treef59cce1d381534c7991adda8cb04db55b4d37ab0
parent7ea6e5dc1b7ab547dc45211d59eae19ecbda068e (diff)
downloadmongo-7c897a1160105a01057f562f6dfe06888590e086.tar.gz
SERVER-39278 Wait for rollback to finish before ending session in transient_txn_error_labels_with_write_concern.js
-rw-r--r--jstests/replsets/transient_txn_error_labels_with_write_concern.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/transient_txn_error_labels_with_write_concern.js b/jstests/replsets/transient_txn_error_labels_with_write_concern.js
index 5c16667e7c4..6b11967cfb2 100644
--- a/jstests/replsets/transient_txn_error_labels_with_write_concern.js
+++ b/jstests/replsets/transient_txn_error_labels_with_write_concern.js
@@ -102,6 +102,7 @@
jsTest.log("NoSuchTransaction without write concern error is transient");
restartServerReplication(rst.nodes);
+ rst.awaitReplication();
res = newPrimarySessionDb.adminCommand({
commitTransaction: 1,
txnNumber: NumberLong(txnNumber),
@@ -112,7 +113,6 @@
assert(!res.hasOwnProperty("writeConcernError"), res);
assert.eq(res["errorLabels"], ["TransientTransactionError"], res);
- rst.awaitNodesAgreeOnPrimary();
session.endSession();
rst.stopSet();