diff options
Diffstat (limited to 'jstests/replsets/tenant_migration_cloner_stats_with_failover.js')
| -rw-r--r-- | jstests/replsets/tenant_migration_cloner_stats_with_failover.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/tenant_migration_cloner_stats_with_failover.js b/jstests/replsets/tenant_migration_cloner_stats_with_failover.js index e84f77b5d20..43c4a63826e 100644 --- a/jstests/replsets/tenant_migration_cloner_stats_with_failover.js +++ b/jstests/replsets/tenant_migration_cloner_stats_with_failover.js @@ -124,7 +124,8 @@ jsTestLog("Bytes copied after first batch of second database: " + bytesCopiedInc // original primary to the new primary. Then, step up the new primary. const fpAfterCreatingCollectionOfSecondDB = configureFailPoint(newRecipientPrimary, "tenantCollectionClonerHangAfterCreateCollection"); -tenantMigrationTest.getRecipientRst().stepUp(newRecipientPrimary); +tenantMigrationTest.getRecipientRst().awaitReplication(); +newRecipientPrimary.adminCommand({replSetStepUp: 1}); fpAfterBatchOfSecondDB.off(); jsTestLog("Wait until the new primary creates collection of second database."); |
