diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-03-26 16:00:59 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-03-28 18:19:35 -0400 |
commit | d2acaa1e46744627bc38ad7ad6e786415a6dbc4d (patch) | |
tree | 7de224b1bd3b1899fbca5d2231098923541cc3e1 /jstests/noPassthrough/snapshot_cursor_shutdown_stepdown.js | |
parent | 2e1542e518b6df660bb3a4c1ce0020c293b928b5 (diff) | |
download | mongo-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.js | 6 |
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(); })(); |