summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2018-03-26 16:00:59 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2018-03-28 18:19:35 -0400
commitd2acaa1e46744627bc38ad7ad6e786415a6dbc4d (patch)
tree7de224b1bd3b1899fbca5d2231098923541cc3e1 /jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js
parent2e1542e518b6df660bb3a4c1ce0020c293b928b5 (diff)
downloadmongo-d2acaa1e46744627bc38ad7ad6e786415a6dbc4d.tar.gz
SERVER-34011 Concurrency between transaction and other threads that can abort transaction
Diffstat (limited to 'jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js')
-rw-r--r--jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js b/jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js
index aaae19766aa..02ee496faff 100644
--- a/jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js
+++ b/jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js
@@ -76,9 +76,9 @@
rst.waitForState(primary, ReplSetTest.State.SECONDARY);
// TODO SERVER-33690: Destroying stashed transaction resources should kill the cursor, so this
- // getMore should fail.
- assert.commandWorked(sessionDB.runCommand(
- {getMore: res.cursor.id, collection: collName, txnNumber: NumberLong(0)}));
+ // getMore should fail with CursorNotFound.
+ assert.commandFailedWithCode(
+ sessionDB.runCommand({getMore: res.cursor.id, collection: collName}), 50740);
rst.stopSet();
})();