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

[SBE][sharding] error_propagation.js fails with the wrong error code

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query Execution 2021-04-19

      When running with SBE enabled, error_propagation.js gets an unexpected error code:

      [js_test:error_propagation] uncaught exception: Error: command did not fail with any of the following codes [ 16554 ] {
      [js_test:error_propagation] 	"ok" : 0,
      [js_test:error_propagation] 	"errmsg" : "PlanExecutor error during aggregation :: caused by :: only numbers and dates are allowed in an $add expression",
      [js_test:error_propagation] 	"code" : 4974201,
      [js_test:error_propagation] 	"codeName" : "Location4974201",
      [js_test:error_propagation] 	"$clusterTime" : {
      [js_test:error_propagation] 		"clusterTime" : Timestamp(1617737256, 12),
      [js_test:error_propagation] 		"signature" : {
      [js_test:error_propagation] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:error_propagation] 			"keyId" : NumberLong(0)
      [js_test:error_propagation] 		}
      [js_test:error_propagation] 	},
      [js_test:error_propagation] 	"operationTime" : Timestamp(1617737256, 12)
      [js_test:error_propagation] } :
      [js_test:error_propagation] _getErrorWithCode@src/mongo/shell/utils.js:25:13
      [js_test:error_propagation] doassert@src/mongo/shell/assert.js:18:14
      [js_test:error_propagation] _assertCommandFailed@src/mongo/shell/assert.js:787:21
      [js_test:error_propagation] assert.commandFailedWithCode@src/mongo/shell/assert.js:833:16
      [js_test:error_propagation] @jstests/sharding/error_propagation.js:21:1
      [js_test:error_propagation] @jstests/sharding/error_propagation.js:1:2
      [js_test:error_propagation] failed to load: jstests/sharding/error_propagation.js
      [js_test:error_propagation] exiting with code -3
      

            Assignee:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: