summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenbin Zhu <wenbin.zhu@mongodb.com>2021-06-01 21:32:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-02 18:44:29 +0000
commitaf1405bc804add82c458913c0f5955ca1917b999 (patch)
tree9c77c1748cb6508d0e2c93ef453a9b65de55a95f
parent3720d7e5cd419db95fdbf1b2df0dbd2f6d88ce56 (diff)
downloadmongo-af1405bc804add82c458913c0f5955ca1917b999.tar.gz
SERVER-57301 Wait and set 'secondaryOk' after recipientSet restart in tenant_migration_recipient_resume_on_stepup_and_restart.js
-rw-r--r--jstests/replsets/tenant_migration_recipient_resume_on_stepup_and_restart.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/tenant_migration_recipient_resume_on_stepup_and_restart.js b/jstests/replsets/tenant_migration_recipient_resume_on_stepup_and_restart.js
index 032c6f66941..c5b3f188594 100644
--- a/jstests/replsets/tenant_migration_recipient_resume_on_stepup_and_restart.js
+++ b/jstests/replsets/tenant_migration_recipient_resume_on_stepup_and_restart.js
@@ -190,6 +190,8 @@ function testRecipientForgetMigrationInterrupt(interruptFunc) {
testRecipientSyncDataInterrupt((recipientRst) => {
recipientRst.stopSet(null /* signal */, true /*forRestart */);
recipientRst.startSet({restart: true});
+ recipientRst.awaitSecondaryNodes();
+ recipientRst.getPrimary();
}, true);
})();
@@ -209,6 +211,8 @@ function testRecipientForgetMigrationInterrupt(interruptFunc) {
testRecipientForgetMigrationInterrupt((recipientRst) => {
recipientRst.stopSet(null /* signal */, true /*forRestart */);
recipientRst.startSet({restart: true});
+ recipientRst.awaitSecondaryNodes();
+ recipientRst.getPrimary();
});
})();
})();