diff options
author | Ian Boros <ian.boros@mongodb.com> | 2022-01-27 16:34:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-27 17:22:57 +0000 |
commit | 27ccc2060c364e2463048597232eebd98e55ecf6 (patch) | |
tree | 4eba6d7d540f4ec6e4b4a48ab215d30616e55047 | |
parent | 2ea19cc87b051c6d12174b42df41d532b1150ab5 (diff) | |
download | mongo-27ccc2060c364e2463048597232eebd98e55ecf6.tar.gz |
SERVER-62979 make fall_off_capped_collection_yielding more robust
-rw-r--r-- | jstests/noPassthrough/fall_off_capped_collection_yielding.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jstests/noPassthrough/fall_off_capped_collection_yielding.js b/jstests/noPassthrough/fall_off_capped_collection_yielding.js index 6a76f98d3ce..3a7359a8af5 100644 --- a/jstests/noPassthrough/fall_off_capped_collection_yielding.js +++ b/jstests/noPassthrough/fall_off_capped_collection_yielding.js @@ -21,10 +21,12 @@ for (let i = 0; i < numDocs; ++i) { assert.commandWorked(coll.insert({_id: i})); } -// The classic query engine may check for interrupts a couple times before accessing data, so -// 'internalQueryExecYieldIterations' must be set to a value slightly higher to ensure the classic -// query engine has accessed data before deciding to yield. +// The classic query engine may check for interrupt/check for yield a couple times before accessing +// data, so 'internalQueryExecYieldIterations' must be set to a value slightly higher to ensure the +// classic query engine has accessed data before deciding to yield. assert.commandWorked(testDB.adminCommand({setParameter: 1, internalQueryExecYieldIterations: 5})); +// Set the yield MS counter to a very high value so that we never yield due to time. +assert.commandWorked(testDB.adminCommand({setParameter: 1, internalQueryExecYieldPeriodMS: 50000})); const failPoint = configureFailPoint(testDB, "setYieldAllLocksHang", {namespace: coll.getFullName()}); |