crossdawn commented on issue #2665: URL: https://github.com/apache/rocketmq/issues/2665#issuecomment-794813373
> 为什么无法确定事务的状态?executeLocalTransaction 方法是执行本地事务,执行完成后就知道是否成功,从而返回commit或rollback。 我是在两个数据库操作中执行的发事务消息操作,所以发消息时候,整个事务没有执行完毕,无法确定。sendMessageInTransaction在sendOk后就开始executeLocalTransaction这个方法,应该在这里面要写全部业务?这样的话理解起来像是发了消息再执行业务,而不是执行完业务发了条消息。 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
