summaryrefslogtreecommitdiff
path: root/jstests/replsets/tenant_migration_donor_rollback_recovery.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/tenant_migration_donor_rollback_recovery.js')
-rw-r--r--jstests/replsets/tenant_migration_donor_rollback_recovery.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/replsets/tenant_migration_donor_rollback_recovery.js b/jstests/replsets/tenant_migration_donor_rollback_recovery.js
index c58d0f23d2d..8f5ddb5ff22 100644
--- a/jstests/replsets/tenant_migration_donor_rollback_recovery.js
+++ b/jstests/replsets/tenant_migration_donor_rollback_recovery.js
@@ -72,6 +72,11 @@ function testRollBack(setUpFunc, rollbackOpsFunc, steadyStateFunc) {
});
donorRst.startSet();
donorRst.initiate();
+ // The default WC is majority and stopServerReplication will prevent satisfying any majority
+ // writes.
+ assert.commandWorked(donorRst.getPrimary().adminCommand(
+ {setDefaultRWConcern: 1, defaultWriteConcern: {w: 1}, writeConcern: {w: "majority"}}));
+ donorRst.awaitReplication();
const tenantMigrationTest =
new TenantMigrationTest({name: jsTestName(), donorRst, recipientRst});