We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac4bf9 commit 8aa68afCopy full SHA for 8aa68af
jstests/replsets/stepup.js
@@ -44,8 +44,8 @@ load("jstests/replsets/rslib.js");
44
assert.commandWorked(
45
secondary.getDB('admin').runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'off'}));
46
47
- // Wait for the secondary to catch up.
48
- assert.writeOK(primary.getDB("test").bar.insert({x: 3}, {writeConcern: {w: 2, j: true}}));
+ // Wait for the secondary to catch up by replicating a doc to both nodes.
+ assert.writeOK(primary.getDB("test").bar.insert({x: 3}, {writeConcern: {w: "majority"}}));
49
// Step up the secondary and succeed.
50
res = secondary.adminCommand({replSetStepUp: 1});
51
assert.commandWorked(res);
0 commit comments