monogo shell查看具体报错日志
show log global
通过事务码220(我这里是220,你的可能是其他号码) 关键字查询,发现我这里的原因是"msg":“Aborting transaction because it has been running for longer than ‘transactionLifetimeLimitSeconds’”
然后通过增加transactionLifetimeLimitSeconds解决了这个问题
db.adminCommand( { setParameter: 1, transactionLifetimeLimitSeconds: 120 } )