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

库存减去失败,但是事务日志状态显示已提交 #14

Open
kongspace opened this issue Mar 26, 2018 · 2 comments
Open

库存减去失败,但是事务日志状态显示已提交 #14

kongspace opened this issue Mar 26, 2018 · 2 comments

Comments

@kongspace
Copy link

我在消减库存的事务中除以0,让事务出现异常,结果事务日志状态显示提交成功,订单状态也显示支付成功,这是否是正常现象?

@LzhBruce
Copy link

项目的流程如果是库存消减失败,是不会影响订单的状态的.
在库存消减失败的情况下,库存的消息是未消费状态.
如果把库存的异常修复之后,再启动,会自动消费之前未成功的消息;会达到最终一致.

@liusy456
Copy link

楼上的回答解决了我对可靠消息分布式事务的疑问,赞一个

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

3 participants