0

我们用的是mongodb4.4.1分片副本集,在java中使用spring的注释事务,查询数据时偶尔报以下错误

Query failed with error code 13388 and error message ‘Transaction 3e9da2f4-c81f-4d0a-9477-840fd220e633:1 was aborted on statement 0 due to: an error from cluster data placement change :: caused by :: epoch mismatch detected for ishop_pay.member_order_log, the collection may have been dropped and recreated’ on server 192.168.1.231:27020; nested exception is com.mongodb.MongoQueryException: Query failed with error code 13388 and error message ‘Transaction 3e9da2f4-c81f-4d0a-9477-840fd220e633:1 was aborted on statement 0 due to: an error from cluster data placement change :: caused by :: epoch mismatch detected for ishop_pay.member_order_log, the collection may have been dropped and recreated’ on server 192.168.1.231:27020

发表新评论

已解决,一个低级错误,有一个collection没有配置分片