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

发送事务消息,当本地执行器返回事务回滚时,mq服务端会抛异常 #15

Open
lt-fancy opened this issue Jan 4, 2020 · 1 comment

Comments

@lt-fancy
Copy link

lt-fancy commented Jan 4, 2020

image
上图模拟了事务消息三种状态,当本地事务返回TransactionStatus.RollbackTransaction的时候
mq服务端会抛异常。
image

按照事务消息的定义,本地事务执行器返回回滚的时候,mq应该存档消息并不让消费者消费到消息啊,在这里怎么抛了个异常

@lt-fancy
Copy link
Author

lt-fancy commented Jan 4, 2020

按照上图的注释,本地事务显示说明了有异常?
我只是按照你们TransactionStatus这个枚举里面定义的返回啊,而且也能看到我直接返回了回滚,哪里有显示抛异常?

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