summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2020-05-21 15:18:30 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-03 20:47:40 +0000
commitb7554bc8dcb59c3a9fea97ab2e682008413ebd81 (patch)
treeb7589084c127ee7379cef59799b48112f2ab3d64
parentbe91369d8477a9b98035b00c7b1129b352aedb75 (diff)
downloadmongo-b7554bc8dcb59c3a9fea97ab2e682008413ebd81.tar.gz
SERVER-48285 Remove lastCommitted checks in no_progress_updates_during_initial_sync.js
(cherry picked from commit 80ee57f7f31899048cc31579f5da41c07dc5e16b)
-rw-r--r--jstests/replsets/no_progress_updates_during_initial_sync.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/jstests/replsets/no_progress_updates_during_initial_sync.js b/jstests/replsets/no_progress_updates_during_initial_sync.js
index a73ee7d17ae..02266e133c0 100644
--- a/jstests/replsets/no_progress_updates_during_initial_sync.js
+++ b/jstests/replsets/no_progress_updates_during_initial_sync.js
@@ -86,11 +86,6 @@ const writeResW2 = primaryDb.runCommand({
});
checkWriteConcernTimedOut(writeResW2);
-// The lastCommitted opTime should not advance on the secondary.
-const opTimesAfterW2 = assert.commandWorked(secondary.adminCommand({replSetGetStatus: 1})).optimes;
-assert.docEq(opTimesAfterW2.lastCommittedOpTime, nullOpTime, () => tojson(opTimesAfterW2));
-assert.eq(nullWallTime, opTimesAfterW2.lastCommittedWallTime, () => tojson(opTimesAfterW2));
-
const writeResWMaj = primaryDb.runCommand({
insert: "test",
documents: [{"writeConcernMajority": "shouldfail"}],
@@ -98,14 +93,9 @@ const writeResWMaj = primaryDb.runCommand({
});
checkWriteConcernTimedOut(writeResWMaj);
-// The lastCommitted opTime should not advance on the secondary.
-const statusAfterWMaj = assert.commandWorked(secondary.adminCommand({replSetGetStatus: 1}));
-const opTimesAfterWMaj = statusAfterWMaj.optimes;
-assert.docEq(opTimesAfterWMaj.lastCommittedOpTime, nullOpTime, () => tojson(opTimesAfterWMaj));
-assert.eq(nullWallTime, opTimesAfterWMaj.lastCommittedWallTime, () => tojson(opTimesAfterWMaj));
-
// 3. Make sure that even though the lastApplied and lastDurable have advanced on the secondary...
-const secondaryOpTimes = opTimesAfterWMaj;
+const statusAfterWMaj = assert.commandWorked(secondary.adminCommand({replSetGetStatus: 1}));
+const secondaryOpTimes = statusAfterWMaj.optimes;
assert.gte(
bsonWoCompare(secondaryOpTimes.appliedOpTime, nullOpTime), 0, () => tojson(secondaryOpTimes));
assert.gte(