From d35c8be0a5ddd9fd718f30744561c54c96d7fb46 Mon Sep 17 00:00:00 2001 From: clarissecheah <65272339+clarissecheah@users.noreply.github.com> Date: Wed, 22 Oct 2025 18:26:27 -0400 Subject: [PATCH] SERVER-112846 Change in repl set reconfigure test (#43034) GitOrigin-RevId: 5c5470b5def0ce9a42210dd05158276e459cfc00 --- .../repl_set_reconfigure_while_sampling.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jstests/noPassthrough/repl_set_reconfigure_while_sampling.js b/jstests/noPassthrough/repl_set_reconfigure_while_sampling.js index 8b0875fe069..bdc3e7b04c1 100644 --- a/jstests/noPassthrough/repl_set_reconfigure_while_sampling.js +++ b/jstests/noPassthrough/repl_set_reconfigure_while_sampling.js @@ -43,13 +43,21 @@ assert(samplingIsIncomplete(primary)); // Add a member and reconfigure. const newNode = rst.add({ - rsConfig: {priority: 0, votes: 0}, setParameter: { "oplogSamplingAsyncEnabled": true, }, }); 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. assert(samplingIsIncomplete(primary));