summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2022-03-14 18:45:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-14 19:57:02 +0000
commita830b32fb405bf8cf2c5b3c3e92ce5954890daa6 (patch)
tree4ce1d766d4bbeb59c6e0a3a6d8ab203881660025 /jstests/replsets
parent193f725f99b099b462388d3aa9058b02f266afc8 (diff)
downloadmongo-a830b32fb405bf8cf2c5b3c3e92ce5954890daa6.tar.gz
SERVER-64454 tenant_migration_conflicting_donor_start_migration_cmds.js should not automatically forget migrations
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js b/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js
index 033325b07d6..1d388d90c8c 100644
--- a/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js
+++ b/jstests/replsets/tenant_migration_conflicting_donor_start_migration_cmds.js
@@ -100,12 +100,16 @@ function setup() {
const {tenantMigrationTest, recipientPrimary, teardown} = setup();
- TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(migrationOpts));
- TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(migrationOpts));
+ TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(
+ migrationOpts, false /* retryOnRetryableErrors */, false /* automaticForgetMigration */));
+ TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(
+ migrationOpts, false /* retryOnRetryableErrors */, false /* automaticForgetMigration */));
// If the second donorStartMigration had started a duplicate migration, the recipient would have
// received four recipientSyncData commands instead of two.
checkNumRecipientSyncDataCmdExecuted(recipientPrimary, 2);
+
+ assert.commandWorked(tenantMigrationTest.forgetMigration(migrationOpts.migrationIdString));
teardown();
})();