Skip to content

Commit

Permalink
SERVER-92841:Fix no speculation after initiate in speculative-auth-re…
Browse files Browse the repository at this point in the history
…plset.js (#25329)

GitOrigin-RevId: d4385d5877b184913b12ef2eff719b4dcbc7f3a1
  • Loading branch information
niazpavelatmongo authored and MongoDB Bot committed Jul 31, 2024
1 parent afed6b7 commit 32ea0f3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions jstests/auth/speculative-auth-replset.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ function countAuthInLog(conn) {
return logCounts;
}

const rst = new ReplSetTest({nodes: 1, keyFile: 'jstests/libs/key1'});
const rst = new ReplSetTest({
nodes: 1,
nodeOptions: {
setParameter: {
"failpoint.disableQueryAnalysisSampler": tojson({mode: "alwaysOn"}),
}
},
keyFile: 'jstests/libs/key1',
});
rst.startSet();
rst.initiate();
rst.awaitReplication();
Expand Down Expand Up @@ -141,4 +149,4 @@ Object.keys(initialMechStats).forEach(function(mech) {
}

admin.logout();
rst.stopSet();
rst.stopSet();

0 comments on commit 32ea0f3

Please sign in to comment.