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

参与者handler中提交事务是若抛异常会导致数据不一致 #10

Open
lijianandwujie opened this issue Feb 12, 2018 · 2 comments

Comments

@lijianandwujie
Copy link

ActorTxTransactionHandler代码第160行"platformTransactionManager.commit(transactionStatus);"参与者提交事务时如果抛异常,当前事务回滚,在finally中删除了本地补偿信息,这样就导致了当前服务的数据丢失,其他服务数据正常入库,且当前服务无法进行补偿

@yu199195
Copy link
Member

这种情况几率太小了,您认为不能在finally 里面删除,那应该在怎么处理好呢

@niejunhao
Copy link

这种情况几率太小了,您认为不能在finally 里面删除,那应该在怎么处理好呢

这种几率并不小,很多原因会导致最终commit的时候失败,比如MySQL服务端kill了连接等等...

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