summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjannaerin <golden.janna@gmail.com>2021-12-20 17:54:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-22 23:51:31 +0000
commit99ac18b975425818210e58477202918eb75792c9 (patch)
treead4c472dc7e0221798a6b563b20715725991215a
parent51388df36fed035ccee7733b82ca46c390612b14 (diff)
downloadmongo-99ac18b975425818210e58477202918eb75792c9.tar.gz
SERVER-62168 Use --oplogMinRetentionHours in tenant_migration_multi_writes.js to prevent the oplog from being truncated
-rw-r--r--jstests/replsets/tenant_migration_multi_writes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/tenant_migration_multi_writes.js b/jstests/replsets/tenant_migration_multi_writes.js
index 59b7ed913b5..ff1744755aa 100644
--- a/jstests/replsets/tenant_migration_multi_writes.js
+++ b/jstests/replsets/tenant_migration_multi_writes.js
@@ -35,7 +35,8 @@ const donorRst = new ReplSetTest({
}
})
});
-donorRst.startSet();
+const oplogMinRetentionHours = 2; // Set to standard Evergreen task timeout time
+donorRst.startSet({oplogMinRetentionHours});
donorRst.initiateWithHighElectionTimeout();
const tenantMigrationTest = new TenantMigrationTest({name: jsTestName(), donorRst: donorRst});