diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2022-04-08 22:56:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-08 23:30:25 +0000 |
commit | 86efc4be5f8921af9e8b89ef4219b089ef0c67cd (patch) | |
tree | 6af922acf8f1d86c21a903df88784e9ecb08145c /jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js | |
parent | 72f118efc3078b75be837b6abbb95603995a605a (diff) | |
download | mongo-86efc4be5f8921af9e8b89ef4219b089ef0c67cd.tar.gz |
SERVER-65341 Enable the SBE lookup feature by default
Diffstat (limited to 'jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js')
-rw-r--r-- | jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js b/jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js index 99e0e88cab9..4a0e65db1cb 100644 --- a/jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js +++ b/jstests/sharding/query/lookup_graph_lookup_foreign_becomes_sharded.js @@ -116,8 +116,11 @@ const isShardedLookupEnabled = getShardedLookupParam.hasOwnProperty("featureFlag let res = shard0.getPrimary().getDB("admin").adminCommand( {getParameter: 1, featureFlagSBELookupPushdown: 1}); +let fcvCmdRes = assert.commandWorked(shard0.getPrimary().getDB("admin").adminCommand( + {getParameter: 1, featureCompatibilityVersion: 1})); let isSBELookupEnabled = res.ok && res.hasOwnProperty("featureFlagSBELookupPushdown") && - res.featureFlagSBELookupPushdown.value; + res.featureFlagSBELookupPushdown.value && + parseFloat(fcvCmdRes.featureCompatibilityVersion.version) >= 6.0; // Now run a getMore for each of the test cases. The collection has become sharded mid-iteration, so // we should observe the error code associated with the test case. @@ -198,8 +201,11 @@ shard0.restart(shard0.getPrimary()); // is running after restart. res = shard0.getPrimary().getDB("admin").adminCommand( {getParameter: 1, featureFlagSBELookupPushdown: 1}); +fcvCmdRes = assert.commandWorked(shard0.getPrimary().getDB("admin").adminCommand( + {getParameter: 1, featureCompatibilityVersion: 1})); isSBELookupEnabled = res.ok && res.hasOwnProperty("featureFlagSBELookupPushdown") && - res.featureFlagSBELookupPushdown.value; + res.featureFlagSBELookupPushdown.value && + parseFloat(fcvCmdRes.featureCompatibilityVersion.version) >= 6.0; // Enable profiling on shard0 to capture stale shard version exceptions. const primaryDB = shard0.getPrimary().getDB(jsTestName()); |