mirror of https://github.com/mongodb/mongo
SERVER-112846 Change in repl set reconfigure test (#43034)
GitOrigin-RevId: 5c5470b5def0ce9a42210dd05158276e459cfc00
This commit is contained in:
parent
4a102a847f
commit
d35c8be0a5
|
|
@ -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));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue