summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorMartin Neupauer <xmaton@messengeruser.com>2021-03-25 15:18:48 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-30 18:29:17 +0000
commitdd19f0696d839950092efa4e88a98827f348f0db (patch)
tree48eca54520b771cf3edf1fac104bce0b2cc71f6b /jstests/noPassthrough
parent983c288a4c4e16c762e2f5b66643389e0b65c0af (diff)
downloadmongo-dd19f0696d839950092efa4e88a98827f348f0db.tar.gz
SERVER-55092 Fix shard filtering for hashed shard keys
We have to compute a hash value for hashed shard keys.
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/lookup_max_intermediate_size.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/noPassthrough/lookup_max_intermediate_size.js b/jstests/noPassthrough/lookup_max_intermediate_size.js
index 2abdadfff09..54b215c63bb 100644
--- a/jstests/noPassthrough/lookup_max_intermediate_size.js
+++ b/jstests/noPassthrough/lookup_max_intermediate_size.js
@@ -2,7 +2,6 @@
// but no larger than internalLookupStageIntermediateDocumentMaxSizeBytes.
// @tags: [
// requires_sharding,
-// sbe_incompatible,
// ]
load("jstests/aggregation/extras/utils.js"); // For assertErrorCode.
@@ -30,6 +29,7 @@ function testPipeline(pipeline, expectedResult, collection) {
function runTest(coll, from) {
const db = null; // Using the db variable is banned in this function.
+ from.drop();
//
// Confirm aggregation will not fail if intermediate $lookup stage exceeds 16 MB.
//
@@ -90,6 +90,7 @@ const db = standalone.getDB("test");
assert.commandWorked(db.adminCommand(
{setParameter: 1, internalLookupStageIntermediateDocumentMaxSizeBytes: 30 * 1024 * 1024}));
+db.lookUp.drop();
runTest(db.lookUp, db.from);
MongoRunner.stopMongod(standalone);
@@ -106,6 +107,7 @@ const sharded = new ShardingTest({
assert(sharded.adminCommand({enableSharding: "test"}));
+sharded.getDB('test').lookUp.drop();
assert(sharded.adminCommand({shardCollection: "test.lookUp", key: {_id: 'hashed'}}));
runTest(sharded.getDB('test').lookUp, sharded.getDB('test').from);