diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-07-11 10:14:16 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2017-07-11 10:14:16 -0400 |
commit | f33e9a715cf3eb4d29d8d5c5a926e5edacf9f63d (patch) | |
tree | 62453a293a42bf89238bddabb26c15a35b33a48c /jstests | |
parent | 4251585b5eecd707c1b3d24ad65299f4ebe98630 (diff) | |
download | mongo-f33e9a715cf3eb4d29d8d5c5a926e5edacf9f63d.tar.gz |
SERVER-27581 Only fetch missing documents on update oplog entries during initial
sync
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/initial_sync_update_missing_doc1.js | 5 | ||||
-rw-r--r-- | jstests/replsets/initial_sync_update_missing_doc2.js | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/jstests/replsets/initial_sync_update_missing_doc1.js b/jstests/replsets/initial_sync_update_missing_doc1.js index 205d080da2a..c326ddf71b1 100644 --- a/jstests/replsets/initial_sync_update_missing_doc1.js +++ b/jstests/replsets/initial_sync_update_missing_doc1.js @@ -48,10 +48,9 @@ {configureFailPoint: 'initialSyncHangBeforeCopyingDatabases', mode: 'off'})); checkLog.contains(secondary, 'update of non-mod failed'); - checkLog.contains(secondary, 'adding missing object'); + checkLog.contains(secondary, 'Fetching missing document'); checkLog.contains( secondary, 'initial sync - initialSyncHangBeforeGettingMissingDocument fail point enabled'); - var res = assert.commandWorked(secondary.adminCommand({replSetGetStatus: 1, initialSync: 1})); assert.eq(res.initialSyncStatus.fetchedMissingDocs, 0); var firstOplogEnd = res.initialSyncStatus.initialSyncOplogEnd; @@ -62,7 +61,7 @@ assert.commandWorked(secondary.getDB('admin').runCommand( {configureFailPoint: 'initialSyncHangBeforeGettingMissingDocument', mode: 'off'})); checkLog.contains(secondary, - 'missing object not found on source. presumably deleted later in oplog'); + 'Missing document not found on source; presumably deleted later in oplog.'); checkLog.contains(secondary, 'initial sync done'); replSet.awaitReplication(); diff --git a/jstests/replsets/initial_sync_update_missing_doc2.js b/jstests/replsets/initial_sync_update_missing_doc2.js index c00ceb7c638..fbd5f3d5411 100644 --- a/jstests/replsets/initial_sync_update_missing_doc2.js +++ b/jstests/replsets/initial_sync_update_missing_doc2.js @@ -48,7 +48,7 @@ {configureFailPoint: 'initialSyncHangBeforeCopyingDatabases', mode: 'off'})); checkLog.contains(secondary, 'update of non-mod failed'); - checkLog.contains(secondary, 'adding missing object'); + checkLog.contains(secondary, 'Fetching missing document'); checkLog.contains( secondary, 'initial sync - initialSyncHangBeforeGettingMissingDocument fail point enabled'); @@ -64,7 +64,7 @@ assert.commandWorked(secondary.getDB('admin').runCommand( {configureFailPoint: 'initialSyncHangBeforeGettingMissingDocument', mode: 'off'})); - checkLog.contains(secondary, 'inserted missing doc:'); + checkLog.contains(secondary, 'Inserted missing document'); secondary.getDB('test').setLogLevel(0, 'replication'); checkLog.contains(secondary, 'initial sync done'); |