diff options
author | Arun Banala <arun.banala@10gen.com> | 2020-01-10 17:20:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-10 17:20:37 +0000 |
commit | f36c6edf4fb4d0624336168f880f70dd87f99bb9 (patch) | |
tree | 1d8bf6300dd15230c9091829923443cf64b39940 /jstests/concurrency | |
parent | e880619bc2fae345b6b73b89cb3037fc37b563ca (diff) | |
download | mongo-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.js | 6 |
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, |