|
When run with the `sharding_api_strict_passthrough.yml` suite, the following error results:
uncaught exception: Error: command failed: {
|
"ok" : 0,
|
"errmsg" : "$_internalSplitPipeline is not allowed with 'apiStrict: true' in API Version 1",
|
"code" : 323,
|
"codeName" : "APIStrictError",
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1676579555, 104),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"operationTime" : Timestamp(1676579555, 104)
|
} with original command request: {
|
"aggregate" : "coll",
|
"pipeline" : [
|
{
|
"$_internalSplitPipeline" : {
|
"mergeType" : "mongos"
|
}
|
},
|
{
|
"$project" : {
|
"y" : {
|
"$function" : {
|
"args" : [
|
"$_id"
|
],
|
"body" : function(id) {
|
return id;
|
},
|
"lang" : "js"
|
}
|
}
|
}
|
}
|
],
|
"cursor" : {
|
|
},
|
"lsid" : {
|
"id" : UUID("338c065d-30f3-4e1b-a0b0-00f9b1eccb17")
|
},
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1676579555, 104),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
},
|
"apiVersion" : "1",
|
"apiStrict" : true
|
} on connection: connection to ip-10-128-55-207.ec2.internal:20045 :
|
_getErrorWithCode@src/mongo/shell/utils.js:24:13
|
doassert@src/mongo/shell/assert.js:18:14
|
_assertCommandWorked@src/mongo/shell/assert.js:766:25
|
assert.commandWorked@src/mongo/shell/assert.js:860:16
|
@jstests/sharding/query/agg_js_on_mongos.js:41:8
|
@jstests/sharding/query/agg_js_on_mongos.js:53:2
|
failed to load: jstests/sharding/query/agg_js_on_mongos.js
|
exiting with code -3
|
|