diff options
author | Ruoxin Xu <ruoxin.xu@mongodb.com> | 2023-01-06 13:58:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-06 15:26:35 +0000 |
commit | 04e8aeb136d714f8d313e5703d8f279f704af750 (patch) | |
tree | 22705560161405d56f43d933fa0ac7fb0e8971c0 | |
parent | 41eccdd1ff035416b719c0e012088d0f7a652134 (diff) | |
download | mongo-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.js | 7 |
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; |