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

"writeConcern is not allowed within a multi-statement transaction" in catalog shard POC

      [js_test:api_params_nontransaction_sharded] uncaught exception: Error: command failed: {
      [js_test:api_params_nontransaction_sharded] 	"n" : 0,
      [js_test:api_params_nontransaction_sharded] 	"writeErrors" : [
      [js_test:api_params_nontransaction_sharded] 		{
      [js_test:api_params_nontransaction_sharded] 			"index" : 0,
      [js_test:api_params_nontransaction_sharded] 			"code" : 72,
      [js_test:api_params_nontransaction_sharded] 			"errmsg" : "writeConcern is not allowed within a multi-statement transaction"
      [js_test:api_params_nontransaction_sharded] 		}
      [js_test:api_params_nontransaction_sharded] 	],
      [js_test:api_params_nontransaction_sharded] 	"ok" : 1,
      [js_test:api_params_nontransaction_sharded] 	"$clusterTime" : {
      [js_test:api_params_nontransaction_sharded] 		"clusterTime" : Timestamp(1655996652, 52),
      [js_test:api_params_nontransaction_sharded] 		"signature" : {
      [js_test:api_params_nontransaction_sharded] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:api_params_nontransaction_sharded] 			"keyId" : NumberLong(0)
      [js_test:api_params_nontransaction_sharded] 		}
      [js_test:api_params_nontransaction_sharded] 	},
      [js_test:api_params_nontransaction_sharded] 	"operationTime" : Timestamp(1655996652, 52),
      [js_test:api_params_nontransaction_sharded] 	"recoveryToken" : {
      [js_test:api_params_nontransaction_sharded] 
      [js_test:api_params_nontransaction_sharded] 	}
      [js_test:api_params_nontransaction_sharded] } with original command request: {
      [js_test:api_params_nontransaction_sharded] 	"insert" : "collection",
      [js_test:api_params_nontransaction_sharded] 	"documents" : [
      [js_test:api_params_nontransaction_sharded] 		{
      [js_test:api_params_nontransaction_sharded] 			"_id" : 1
      [js_test:api_params_nontransaction_sharded] 		},
      [js_test:api_params_nontransaction_sharded] 		{
      [js_test:api_params_nontransaction_sharded] 			"_id" : 21
      [js_test:api_params_nontransaction_sharded] 		}
      [js_test:api_params_nontransaction_sharded] 	],
      [js_test:api_params_nontransaction_sharded] 	"lsid" : {
      [js_test:api_params_nontransaction_sharded] 		"id" : UUID("63883230-b08c-4c18-a25e-5a03f39bda44")
      [js_test:api_params_nontransaction_sharded] 	},
      [js_test:api_params_nontransaction_sharded] 	"$clusterTime" : {
      [js_test:api_params_nontransaction_sharded] 		"clusterTime" : Timestamp(1655996652, 51),
      [js_test:api_params_nontransaction_sharded] 		"signature" : {
      [js_test:api_params_nontransaction_sharded] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:api_params_nontransaction_sharded] 			"keyId" : NumberLong(0)
      [js_test:api_params_nontransaction_sharded] 		}
      [js_test:api_params_nontransaction_sharded] 	},
      [js_test:api_params_nontransaction_sharded] 	"txnNumber" : NumberLong(0),
      [js_test:api_params_nontransaction_sharded] 	"autocommit" : false,
      [js_test:api_params_nontransaction_sharded] 	"stmtId" : NumberInt(0),
      [js_test:api_params_nontransaction_sharded] 	"startTransaction" : true
      [js_test:api_params_nontransaction_sharded] } on connection: connection to ip-10-122-2-167:20022 :
      [js_test:api_params_nontransaction_sharded] _getErrorWithCode@src/mongo/shell/utils.js:24:13
      [js_test:api_params_nontransaction_sharded] doassert@src/mongo/shell/assert.js:18:14
      [js_test:api_params_nontransaction_sharded] _assertCommandWorked@src/mongo/shell/assert.js:760:25
      [js_test:api_params_nontransaction_sharded] assert.commandWorked@src/mongo/shell/assert.js:852:16
      [js_test:api_params_nontransaction_sharded] setUp/<@jstests/sharding/libs/mongos_api_params_util.js:126:32
      [js_test:api_params_nontransaction_sharded] retryOnceOnTransientAndRestartTxnOnMongos@jstests/libs/auto_retry_transaction_in_sharding.js:76:17
      [js_test:api_params_nontransaction_sharded] setUp@jstests/sharding/libs/mongos_api_params_util.js:125:62
      [js_test:api_params_nontransaction_sharded] runTests@jstests/sharding/libs/mongos_api_params_util.js:1576:30
      [js_test:api_params_nontransaction_sharded] @jstests/sharding/api_params_nontransaction_sharded.js:13:25
      [js_test:api_params_nontransaction_sharded] @jstests/sharding/api_params_nontransaction_sharded.js:14:3
      [js_test:api_params_nontransaction_sharded] failed to load: jstests/sharding/api_params_nontransaction_sharded.js
      
      

            Assignee:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: