Skip to content

Commit 7eb72eb

Browse files
committed
SERVER-23308 initial_sync_update_missing_doc1.js and initial_sync_update_missing_doc2.js should block until the secondary nodes have completed recovery
1 parent d377801 commit 7eb72eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

jstests/replsets/initial_sync_update_missing_doc1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
checkLog(secondary, 'initial sync done');
6060

6161
replSet.awaitReplication();
62+
replSet.awaitSecondaryNodes();
63+
6264
assert.eq(0,
6365
secondary.getDB('test').getCollection(name).count(),
6466
'collection successfully synced to secondary');

jstests/replsets/initial_sync_update_missing_doc2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
checkLog(secondary, 'initial sync done');
7878

7979
replSet.awaitReplication();
80+
replSet.awaitSecondaryNodes();
81+
8082
var coll = secondary.getDB('test').getCollection(name);
8183
assert.eq(1, coll.count(), 'collection successfully synced to secondary');
8284
assert.eq(doc, coll.findOne(), 'document on secondary matches primary');

0 commit comments

Comments
 (0)