Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用子事务屏障时报异常 #366

Open
xujunfeng opened this issue Nov 10, 2022 · 4 comments
Open

使用子事务屏障时报异常 #366

xujunfeng opened this issue Nov 10, 2022 · 4 comments

Comments

@xujunfeng
Copy link

使用子事务屏障的 barrier.MongoCall,修改数据时总是会报WriteConflict,用mongo-go-driver的事务正常

@xujunfeng
Copy link
Author

判断error,返回状态425,最终都成功了

@yedf2
Copy link
Contributor

yedf2 commented Nov 10, 2022

没太明白你的问题,能否给个复现你问题的例子代码?放在github上某个仓库里?

@xujunfeng
Copy link
Author

微信图片_20221110153843
微信图片_20221110153925
模拟高并发下的分布式事务,同时修改一条数据,barrier.MongoCall会返回WriteConflict异常,直接用mongo-driver没有出现过异常

@yedf2
Copy link
Contributor

yedf2 commented Nov 10, 2022

你跟踪调试一下呢?这个我没遇见过,对mongo不是很熟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants