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

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

    • Sharding NYC
    • 3

      [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(1651702881, 150),
      [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(1651702881, 150),
      [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("1eac56d1-53b2-44bd-8c2e-3a9046b0aec1")
      [js_test:api_params_nontransaction_sharded] 	},
      [js_test:api_params_nontransaction_sharded] 	"$clusterTime" : {
      [js_test:api_params_nontransaction_sharded] 		"clusterTime" : Timestamp(1651702881, 147),
      [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:1596: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:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: