After the tenant_migration_recipient_resume_on_stepup_and_restart.js restarts the recipientRst, the node instance is recreated and `secondaryOk` is not set on the node, thus when calling waitForMigrationGarbageCollection, which does the collection count on each node including secondaries, the call fails on a secondary with NotPrimaryNoSecondaryOk. After restarting replset, we usually call awaitSecondaryNodes() and getPrimary() to wait for election to finish and all nodes in their desired state, and this also sets `secondaryOk`.
Wait and set 'secondaryOk' after recipientSet restart in tenant_migration_recipient_resume_on_stepup_and_restart.js
- Votes:
-
0 Vote for this issue
- Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: