summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-11-02 18:37:48 +0100
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-11-02 19:04:03 +0100
commit2f4769e6bb9ec06f283309895eba8cf215a2c815 (patch)
treede677fc899fccad594f772d368aa585ba70c4b9f /jstests/concurrency
parentdff0e1c4b67412328106d7f2c33c52f5179aa450 (diff)
downloadmongo-2f4769e6bb9ec06f283309895eba8cf215a2c815.tar.gz
SERVER-37244 Expect interruption due to transaction abort in snapshot_read_utils.js
Diffstat (limited to 'jstests/concurrency')
-rw-r--r--jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js b/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js
index 806f34c866f..eef0148b26a 100644
--- a/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js
+++ b/jstests/concurrency/fsm_workload_helpers/snapshot_read_utils.js
@@ -40,7 +40,8 @@ function doSnapshotFind(sortByAscending, collName, data, findErrorCodes) {
const cursor = parseCursor(res);
if (!cursor) {
- abortTransaction(data.sessionDb, data.txnNumber, [ErrorCodes.NoSuchTransaction]);
+ abortTransaction(
+ data.sessionDb, data.txnNumber, [ErrorCodes.NoSuchTransaction, ErrorCodes.Interrupted]);
data.cursorId = NumberLong(0);
} else {
assert(cursor.hasOwnProperty("firstBatch"), tojson(res));