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

关于事务落库后,业务操作失败的情况怎么处理? #106

Open
zhaoshengwolf opened this issue Aug 19, 2022 · 0 comments
Open

Comments

@zhaoshengwolf
Copy link

项目中有四个库
事务日志库,对应着有
message_account_service(账户事务日志表)
message_order_service(订单事务日志表)
message_inventory_service(库存事务日志表)
订单库:有表 order
账户库: 有表 account
库存库:有表 inventory

现有以下几个情况:
1、下单时,扣减账户和扣减库存都是成功的;但在订单服务的最后可能发生了异常,此时账户和订单的事务日志表记得的状态都是成功的,订单事务日志表的状态是失败;此时要怎么处理?(重试的方式执行下单操作吗,可现在的表里没有记录下单时的参数信息)

2、下单时,扣减账户失败,扣减库存成功;此时账户的事务日志表状态是失败,订单和库存的事务日志表状态是成功;此时要怎么处理?

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

1 participant