summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidier Nadeau <didier.nadeau@mongodb.com>2022-10-24 18:40:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-08 15:12:39 +0000
commit13a0b0db261bfa8130d67db5d4730cb3563456dd (patch)
treef7a69721bae66a5b291632f0dc4a0725cd3d622b
parent1d7d31af73e667c1f65a162a39b7b27eec11e570 (diff)
downloadmongo-13a0b0db261bfa8130d67db5d4730cb3563456dd.tar.gz
SERVER-70773 Skip rebuilding instance on stepup in tenant migration recipient service test
-rw-r--r--src/mongo/db/repl/tenant_migration_recipient_service_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp b/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp
index 4e5c4dd9556..3018cbb4d21 100644
--- a/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp
+++ b/src/mongo/db/repl/tenant_migration_recipient_service_test.cpp
@@ -3785,6 +3785,8 @@ TEST_F(TenantMigrationRecipientServiceTest,
stopFailPointEnableBlock fp("fpAfterPersistingTenantMigrationRecipientInstanceStateDoc");
auto beforeDeleteFp = globalFailPointRegistry().find(
"pauseTenantMigrationRecipientInstanceBeforeDeletingOldStateDoc");
+ FailPointEnableBlock skipRebuildFp("PrimaryOnlyServiceSkipRebuildingInstances");
+
auto initialTimesEntered = beforeDeleteFp->setMode(FailPoint::alwaysOn);
auto opCtx = makeOperationContext();
@@ -3856,6 +3858,7 @@ TEST_F(TenantMigrationRecipientServiceTest,
TEST_F(TenantMigrationRecipientServiceTest, RecipientFailsDueToOperationConflict) {
FailPointEnableBlock createIndexesFailpointBlock("skipCreatingIndexDuringRebuildService");
stopFailPointEnableBlock fp("fpAfterPersistingTenantMigrationRecipientInstanceStateDoc");
+ FailPointEnableBlock skipRebuildFp("PrimaryOnlyServiceSkipRebuildingInstances");
// Insert a state doc to simulate running a migration with an existing state doc NOT marked for
// garbage collection.