yedf3 commented on issue #3500: URL: https://github.com/apache/rocketmq/issues/3500#issuecomment-972498436
大概了解了。其实是文章作者的例子,在业务成功时,返回COMMIT更好。因为RocketMQ是在提交完本地事务之后,再发送COMMIT消息。 - 在提交本地事务之前掉电,那么COMMIT没有发送,后续走回查,会最终回滚 - 在提交本地事务之后掉电,发送COMMIT之前掉电,那么后续走回查,会最终返回COMMIT - 没有掉电,那么发送COMMIT消息,很快让业务达到最终一致 官方例子中返回UNKNOWN不是标准做法,仅仅是为了演示一遍回查的逻辑流程 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
