diff options
Diffstat (limited to 'jstests/replsets/tenant_migration_collection_ttl.js')
-rw-r--r-- | jstests/replsets/tenant_migration_collection_ttl.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/replsets/tenant_migration_collection_ttl.js b/jstests/replsets/tenant_migration_collection_ttl.js index 13adf04efa7..df5c44557e0 100644 --- a/jstests/replsets/tenant_migration_collection_ttl.js +++ b/jstests/replsets/tenant_migration_collection_ttl.js @@ -32,8 +32,14 @@ const garbageCollectionOpts = { 'failpoint.tenantMigrationDonorAllowsNonTimestampedReads': tojson({mode: 'alwaysOn'}), }; -const tenantMigrationTest = new TenantMigrationTest( - {name: jsTestName(), sharedOptions: {setParameter: garbageCollectionOpts}}); +const tenantMigrationTest = new TenantMigrationTest({ + name: jsTestName(), + sharedOptions: {setParameter: garbageCollectionOpts}, + // This test relies on ttl monitor deletion to be delayed long enough to observe documents prior + // to being deleted. That result is unintuitively achieved better with a large awaitData timeout + // than a slow ttl monitor. + optimizeMigrations: false +}); const collName = "testColl"; |