summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuoxin Xu <ruoxin.xu@mongodb.com>2023-01-06 13:58:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-06 15:26:35 +0000
commit04e8aeb136d714f8d313e5703d8f279f704af750 (patch)
tree22705560161405d56f43d933fa0ac7fb0e8971c0
parent41eccdd1ff035416b719c0e012088d0f7a652134 (diff)
downloadmongo-04e8aeb136d714f8d313e5703d8f279f704af750.tar.gz
SERVER-72139 Force Bonsai in test start_up_with_custom_cost_model.js
-rw-r--r--jstests/noPassthrough/start_up_with_custom_cost_model.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/jstests/noPassthrough/start_up_with_custom_cost_model.js b/jstests/noPassthrough/start_up_with_custom_cost_model.js
index 85d1098cd86..eb35c370028 100644
--- a/jstests/noPassthrough/start_up_with_custom_cost_model.js
+++ b/jstests/noPassthrough/start_up_with_custom_cost_model.js
@@ -8,7 +8,12 @@ load("jstests/libs/optimizer_utils.js"); // For checkCascadesOptimizerEnabled.
function getScanCostWith(customScanCost) {
const costStr = `{"scanIncrementalCost": ${customScanCost}}`;
- const conn = MongoRunner.runMongod({setParameter: {'internalCostModelCoefficients': costStr}});
+ const conn = MongoRunner.runMongod({
+ setParameter: {
+ 'internalCostModelCoefficients': costStr,
+ 'internalQueryFrameworkControl': "forceBonsai"
+ }
+ });
const db = conn.getDB(jsTestName());
const coll = db.start_up_with_custom_cost_model;