diff options
author | Wenbin Zhu <wenbin.zhu@mongodb.com> | 2021-07-23 19:14:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-23 20:56:47 +0000 |
commit | 0651a3c85271adcfb32f94d146cf3404331c1a8c (patch) | |
tree | 4ae115ebf25bcd8b4c26675f59fd9e01ab734ad7 /jstests | |
parent | e7efcb334b6593cdce5cc9765ae702e076827a20 (diff) | |
download | mongo-0651a3c85271adcfb32f94d146cf3404331c1a8c.tar.gz |
SERVER-58812 Get donorDoc before being garbage collected in tenant_migration_timeseries_retryable_write_oplog_cloning.js
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/tenant_migration_timeseries_retryable_write_oplog_cloning.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/replsets/tenant_migration_timeseries_retryable_write_oplog_cloning.js b/jstests/replsets/tenant_migration_timeseries_retryable_write_oplog_cloning.js index 1a7f8811124..fc772d30714 100644 --- a/jstests/replsets/tenant_migration_timeseries_retryable_write_oplog_cloning.js +++ b/jstests/replsets/tenant_migration_timeseries_retryable_write_oplog_cloning.js @@ -126,12 +126,15 @@ function testOplogCloning(ordered) { migrationIdString: extractUUIDFromObject(migrationId), tenantId: kTenantId, }; - TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration(migrationOpts)); + + TenantMigrationTest.assertCommitted(tenantMigrationTest.runMigration( + migrationOpts, false /* retryOnRetryableErrors */, false /* automaticForgetMigration */)); const donorDoc = donorPrimary.getCollection(TenantMigrationTest.kConfigDonorsNS).findOne({ tenantId: kTenantId }); + assert.commandWorked(tenantMigrationTest.forgetMigration(migrationOpts.migrationIdString)); tenantMigrationTest.waitForMigrationGarbageCollection(migrationId, kTenantId); // Test the aggregation pipeline the recipient would use for getting the oplog chain where |