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

Investigate stable API versioning compatibility for $_internalSplitPipeline

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • 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 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 

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

              Created:
              Updated:
              Resolved: