Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74167

Investigate stable API versioning compatibility for aggregate.explain

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution

      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 

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            naama.bareket@mongodb.com Naama Bareket
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: