diff options
author | Judah Schvimer <judah@mongodb.com> | 2016-11-21 09:44:06 -0500 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2016-11-21 09:44:06 -0500 |
commit | 56ca0997552b466fa4b263c5a2105075df306a7a (patch) | |
tree | 6007a92ffa36b2f38f524a7a0fbfed74ac5dd384 /jstests/noPassthroughWithMongod | |
parent | eda82cb72e0271604267a9d80f5468d5b0dbc348 (diff) | |
download | mongo-56ca0997552b466fa4b263c5a2105075df306a7a.tar.gz |
SERVER-27110 clear OplogBuffer at the end of initial sync
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r-- | jstests/noPassthroughWithMongod/initial_sync_oplog_rollover.js | 4 | ||||
-rw-r--r-- | jstests/noPassthroughWithMongod/initial_sync_replSetGetStatus.js | 3 |
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"); })(); |