If a standalone mongod receives a write command with a valid txn number and logical session id, it will assign a statement id to each write, but because isOplogDisabledFor will always return false, since replication is not enabled, this invariant will be hit here.
I'm not completely sure the invariant even needs to stay, since statement ids are only used after this check for inserting to the oplog, but regardless, since retryable writes aren't supported on standalone mongods, a command with a txn number should return a bad status instead of crashing the node.
- is duplicated by
-
SERVER-30540 Throw an error if retryable writes is attempted on stand alone mongod
- Closed
- related to
-
SERVER-69517 moveChunk command fails with "Transaction numbers are only allowed on a replica set member or mongos" on Mongo 4.4 mongos without replica sets
- Closed
-
SERVER-41531 Support transactions on standalone instance
- Closed