mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-34557 Make sure slave_delay_clean_shutdown.js awaits secondary nodes before
reading from oplog after restarting node
This commit is contained in:
parent
880de296d3
commit
978ee4b254
@ -56,6 +56,8 @@ load('jstests/replsets/rslib.js');
|
||||
assert.lt(Date.timeFunc(() => rst.stop(1)), 60 * 1000);
|
||||
|
||||
secondary = rst.restart(1);
|
||||
rst.awaitSecondaryNodes();
|
||||
|
||||
assert.eq(getLatestOp(secondary), lastOp);
|
||||
sleep(2000); // Prevent the test from passing by chance.
|
||||
assert.eq(getLatestOp(secondary), lastOp);
|
||||
|
Loading…
Reference in New Issue
Block a user