[SERVER-74161] Investigate stable API versioning compatibility for $_internalSplitPipeline Created: 17/Feb/23  Updated: 27/Oct/23  Resolved: 03/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Naama Bareket Assignee: Backlog - Query Execution
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-75621 Complete TODO listed in SERVER-74161 Closed
Assigned Teams:
Query Execution
Participants:

 Description   

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 


Generated at Thu Feb 08 06:26:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.