-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
mongo5.0.4 redhat 8
操作步骤:
MongoDB Enterprise mongos> var session = db.getMongo().startSession()
MongoDB Enterprise mongos> session.startTransaction()
MongoDB Enterprise mongos> var tb1 = session.getDatabase('testdb01').getCollection('table01')
MongoDB Enterprise mongos> tb1.updateOne({id:1},{$set:{"id":"88888"}},{multi:false})
MongoDB Enterprise mongos> session.commitTransaction()
uncaught exception: Error: command failed: {
"ok" : 0,
"errmsg" : "Transaction was aborted :: caused by :: from shard rs_shard03 :: caused by :: 'prepareTransaction' is not supported for replica sets with arbiters",
"code" : 148,
"codeName" : "ReadConcernMajorityNotEnabled",
"$clusterTime" : {
"clusterTime" : Timestamp(1647248380, 3),
"signature" :
},
"operationTime" : Timestamp(1647248380, 3),
"recoveryToken" :
} with original command request: {
"commitTransaction" : 1,
"txnNumber" : NumberLong(0),
"lsid" :
,
"$clusterTime" : {
"clusterTime" : Timestamp(1647248371, 2),
"signature" :
},
"autocommit" : false,
"stmtId" : NumberInt(1)
} on connection: connection to 127.0.0.1:32017 :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:18:14
_assertCommandWorked@src/mongo/shell/assert.js:737:17
assert.commandWorked@src/mongo/shell/assert.js:829:16
commitTransaction@src/mongo/shell/session.js:977:17
@(shell):1:1
然后mongos上find,currentOp等操作都无响应了。
- related to
-
COMPASS-4715 'prepareTransaction' is not supported for replica sets with arbiters
- Closed