summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2016-11-21 09:44:06 -0500
committerJudah Schvimer <judah@mongodb.com>2016-12-01 14:27:59 -0500
commitacc08bf244317ed3e7c946b4bd9129c59126636c (patch)
treeb989e5d042d4d6af21c3cea3ddf7471dabc1b0e2 /jstests/noPassthroughWithMongod
parent4d5bd0e6e7f5d6a8035a57a78aadded7537c05d4 (diff)
downloadmongo-acc08bf244317ed3e7c946b4bd9129c59126636c.tar.gz
SERVER-27110 clear OplogBuffer at the end of initial sync
(cherry picked from commit 56ca0997552b466fa4b263c5a2105075df306a7a)
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js4
-rw-r--r--jstests/noPassthroughWithMongod/initial_sync_replSetGetStatus.js3
2 files changed, 7 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js b/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js
index 9904f61b6b1..9b6f6a7477d 100644
--- a/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js
+++ b/jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js
@@ -76,4 +76,8 @@
assert.eq(i,
secondary.getDB('test').foo.count({a: 2}),
'collection successfully synced to secondary');
+
+ assert.eq(0,
+ secondary.getDB('local')['temp_oplog_buffer'].find().itcount(),
+ "Oplog buffer was not dropped after initial sync");
})();
diff --git a/jstests/noPassthroughWithMongod/initial_sync_replSetGetStatus.js b/jstests/noPassthroughWithMongod/initial_sync_replSetGetStatus.js
index 64e33014b4c..2ad77904ad4 100644
--- a/jstests/noPassthroughWithMongod/initial_sync_replSetGetStatus.js
+++ b/jstests/noPassthroughWithMongod/initial_sync_replSetGetStatus.js
@@ -103,4 +103,7 @@
assert.commandFailedWithCode(secondary.adminCommand({replSetGetStatus: 1, initialSync: "m"}),
ErrorCodes.TypeMismatch);
+ assert.eq(0,
+ secondary.getDB('local')['temp_oplog_buffer'].find().itcount(),
+ "Oplog buffer was not dropped after initial sync");
})();