diff options
author | Benety Goh <benety@mongodb.com> | 2016-10-30 23:55:38 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-11-02 21:20:52 -0400 |
commit | fb1cc32e76910334327c0835e3777ee1ddedf2d8 (patch) | |
tree | 307ecd6b9702d5e8565f220b465403715735ccd6 /jstests/noPassthrough | |
parent | 4a431ceb4cb1d986ceb54ee26ca86915ef9ffd42 (diff) | |
download | mongo-fb1cc32e76910334327c0835e3777ee1ddedf2d8.tar.gz |
SERVER-25145 BackgroundSync provides minValid to sync source selection in RECOVERING mode
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r-- | jstests/noPassthrough/minvalid2.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/noPassthrough/minvalid2.js b/jstests/noPassthrough/minvalid2.js index 2eb167444ad..9931f3998f4 100644 --- a/jstests/noPassthrough/minvalid2.js +++ b/jstests/noPassthrough/minvalid2.js @@ -74,9 +74,15 @@ print("8: start up former master"); clearRawMongoProgramOutput(); replTest.restart(masterId); -print("9: check former master does not roll back"); +print("9: check former master " + replTest.nodes[masterId].host + " does not select former slave " + + slave.host + " as sync source"); +replTest.waitForState(replTest.nodes[masterId], ReplSetTest.State.RECOVERING, 90000); + +// Sync source selection will log this message if it does not detect min valid in the sync +// source candidate's oplog. assert.soon(function() { - return rawMongoProgramOutput().match("need to rollback, but in inconsistent state"); + return rawMongoProgramOutput().match( + 'it does not contain the necessary operations for us to reach a consistent state'); }); replTest.stopSet(undefined, undefined, {allowedExitCodes: [MongoRunner.EXIT_ABRUPT]}); |