SERVER-112846 Change in repl set reconfigure test (#43034)

GitOrigin-RevId: 5c5470b5def0ce9a42210dd05158276e459cfc00
This commit is contained in:
clarissecheah 2025-10-22 18:26:27 -04:00 committed by MongoDB Bot
parent 4a102a847f
commit d35c8be0a5
1 changed files with 9 additions and 1 deletions

View File

@ -43,13 +43,21 @@ assert(samplingIsIncomplete(primary));
// Add a member and reconfigure. // Add a member and reconfigure.
const newNode = rst.add({ const newNode = rst.add({
rsConfig: {priority: 0, votes: 0},
setParameter: { setParameter: {
"oplogSamplingAsyncEnabled": true, "oplogSamplingAsyncEnabled": true,
}, },
}); });
rst.reInitiate(); rst.reInitiate();
// Add a new member and do a write that requires acknowledgement from both nodes.
assert.commandWorked(
rst
.getPrimary()
.getDB("test")
.getCollection("markers")
.insert({a: 1}, {writeConcern: {w: 2}}),
);
// We were able to add a new member and we're still sampling. // We were able to add a new member and we're still sampling.
assert(samplingIsIncomplete(primary)); assert(samplingIsIncomplete(primary));