我使用的是猫鼬和事务,我发现了这个错误,它使nodejs服务器崩溃。我在文档中找不到错误代码。

发布于 2022-01-09 08:15:37
这个错误来自于这里
// Cannot change committed transaction but allow retrying commitTransaction command.
uassert(ErrorCodes::TransactionCommitted,
str::stream() << "Transaction " << requestTxnNumber << " has been committed.",
cmdName == "commitTransaction" || !o().txnState.isCommitted());这意味着当接收到commitTransaction以外的操作时,事务已经提交。
https://stackoverflow.com/questions/70622078
复制相似问题