diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2019-03-19 11:27:18 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2019-03-21 11:18:16 -0400 |
commit | 2a4d8ed5bb64af081b887f17dabf298831866b1d (patch) | |
tree | 436248527e35789ed9d249248d279b3f49918c7f /src/mongo/shell | |
parent | 7140a97545187bf7d563a35c996525829202a647 (diff) | |
download | mongo-2a4d8ed5bb64af081b887f17dabf298831866b1d.tar.gz |
SERVER-40193 Do not propagate commit point through heartbeats when FCV=4.0
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/replsettest.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index 2ed833ca547..815f63c7c95 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -1257,6 +1257,11 @@ var ReplSetTest = function(opts) { "data": {"awaitLastStableRecoveryTimestamp": 1}, "writeConcern": {"w": "majority", "wtimeout": ReplSetTest.kDefaultTimeoutMS} })); + + // Perform a second write, in case some node had lost its sync source. + // TODO SERVER-40211: Remove the second write. + assert.commandWorked(db.adminCommand( + {"appendOplogNote": 1, "data": {"awaitLastStableRecoveryTimestamp": 2}})); }; // TODO(SERVER-14017): Remove this extra sub-shell in favor of a cleaner authentication |