Skip to content

Commit

Permalink
SERVER-82394 Mark plan_cache_list_plans test as 'cannot_run_during_up…
Browse files Browse the repository at this point in the history
…grade_downgrade'
  • Loading branch information
denis631 authored and Evergreen Agent committed Oct 24, 2023
1 parent 75b407f commit a321c0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jstests/core/query/plan_cache/plan_cache_list_plans.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
// # Query settings are atlas proxy and direct shard execution incompatible.
// directly_against_shardsvrs_incompatible,
// simulate_atlas_proxy_incompatible,
// # Query settings are not supported in upgrade/downgrade scenario
// cannot_run_during_upgrade_downgrade,
// ]

import {
Expand Down Expand Up @@ -208,6 +210,9 @@ if (!isSbeEnabled) {
if (FeatureFlagUtil.isPresentAndEnabled(db, "QuerySettings")) {
// Set query settings for a query to use 'settings.indexHints.allowedIndexes' indexes.
const qsutils = new QuerySettingsUtils(db, coll.getName());

// Specify 'allowedIndexes' with more than one index, otherwise it will result in single
// solution plan, that won't be cached in classic.
const settings = {indexHints: {allowedIndexes: ["a_1", "a_1_b_1"]}};
const filter = {a: 1};
const query = qsutils.makeFindQueryInstance(filter);
Expand Down

0 comments on commit a321c0d

Please sign in to comment.