diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2020-11-02 16:07:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-12 01:07:22 +0000 |
commit | 21169a8fb3064c79a1045f743d04f56160feef87 (patch) | |
tree | 3c5fd2c3ba42c8e1c956e9241aa1ab73b8ef3a00 | |
parent | 58e1d3be8355ef1c727627ce2a3dcc5c003cce65 (diff) | |
download | mongo-21169a8fb3064c79a1045f743d04f56160feef87.tar.gz |
SERVER-52560 oplog_writes_only_permitted_on_standalone.js must wait for insert to be in stable checkpoint
-rw-r--r-- | jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js index 1e77d01c561..82c6ad8c0a0 100644 --- a/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js +++ b/jstests/noPassthrough/oplog_writes_only_permitted_on_standalone.js @@ -15,7 +15,8 @@ rst.startSet(); rst.initiateWithHighElectionTimeout(); let conn = rst.getPrimary(); -assert.commandWorked(conn.getDB("test").coll.insert({_id: 0, a: 0})); +assert.commandWorked( + conn.getDB("test").coll.insert({_id: 0, a: 0}, {writeConcern: {w: "majority"}})); let oplog = conn.getDB("local").oplog.rs; |