summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorArun Banala <arun.banala@10gen.com>2020-01-10 17:20:37 +0000
committerevergreen <evergreen@mongodb.com>2020-01-10 17:20:37 +0000
commitf36c6edf4fb4d0624336168f880f70dd87f99bb9 (patch)
tree1d8bf6300dd15230c9091829923443cf64b39940 /jstests/concurrency
parente880619bc2fae345b6b73b89cb3037fc37b563ca (diff)
downloadmongo-f36c6edf4fb4d0624336168f880f70dd87f99bb9.tar.gz
SERVER-45248 Retry transaction on CursorNotFound error for 'multi_statement_transaction_atomicity_isolation' tests
Diffstat (limited to 'jstests/concurrency')
-rw-r--r--jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js b/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js
index 79e9f3efd11..8be593b1a77 100644
--- a/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js
+++ b/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js
@@ -357,7 +357,11 @@ var $config = (function() {
getAllDocuments,
getDocIdsToUpdate,
numDocs: 10,
- retryOnKilledSession: false,
+ // Because of the usage of 'getMore' command in this test, we may receive
+ // 'CursorNotFound' exception from the server, if a node was stepped down between the
+ // 'find' and subsequent 'getMore' command. We retry the entire transaction in this
+ // case.
+ retryOnKilledSession: TestData.runningWithShardStepdowns,
updatedDocsClientHistory: [],
},
setup: setup,