[SERVER-74167] Investigate stable API versioning compatibility for aggregate.explain Created: 17/Feb/23  Updated: 21/Feb/23

Status: Backlog
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: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

When run with the `sharding_api_strict_passthrough.yml` suite, the following error results:

uncaught exception: Error: command did not fail with any of the following codes [ 263 ] {
	"ok" : 0,
	"errmsg" : "BSON field 'aggregate.explain' is not allowed with apiStrict:true.",
	"code" : 323,
	"codeName" : "APIStrictError",
	"$clusterTime" : {
		"clusterTime" : Timestamp(1676579468, 44),
		"signature" : {
			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
			"keyId" : NumberLong(0)
		}
	},
	"operationTime" : Timestamp(1676579468, 44)
} : {
	"ok" : 0,
	"errmsg" : "BSON field 'aggregate.explain' is not allowed with apiStrict:true.",
	"code" : 323,
	"codeName" : "APIStrictError",
	"$clusterTime" : {
		"clusterTime" : Timestamp(1676579468, 44),
		"signature" : {
			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
			"keyId" : NumberLong(0)
		}
	},
	"operationTime" : Timestamp(1676579468, 44)
} :
_getErrorWithCode@src/mongo/shell/utils.js:24:13
doassert@src/mongo/shell/assert.js:18:14
_assertCommandFailed@src/mongo/shell/assert.js:834:29
assert.commandFailedWithCode@src/mongo/shell/assert.js:882:16
@jstests/sharding/query/explain_cmd.js:155:8
@jstests/sharding/query/explain_cmd.js:159:3
failed to load: jstests/sharding/query/explain_cmd.js
exiting with code -3 


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