2259289435 commented on issue #1838: URL: https://github.com/apache/rocketmq/issues/1838#issuecomment-621716360
我这边4.6.0没问题,已经上线稳定运行很久了。没有回查你检查下是不是check那边,你这偶发看是不是压测可以复现 [email protected] From: Xi Zhou Date: 2020-04-29 14:28 To: apache/rocketmq CC: 2259289435; Mention Subject: Re: [apache/rocketmq] New Programming Model of TransactionMQProducer (#1838) 我也是这样做的。使用org.springframework.transaction.support.TransactionSynchronization 来绑定到spring的事务管理上。 修改发送半消息逻辑。直接拿到sendresult 绑定到上下文 在beforeCommit将消息通过获取本事务的数据库链接来写入数据库 在afterCompletion根据状态去把上下文的sendresult commit/rollback 掉 由事务消息回查兜底 但是现在感觉偶尔会出现发送了半消息.没有确认然后也没有回查. 在 RMQ_SYS_TRANS_HALF_TOPIC 里面可以查到对应的消息,但是回查确没有对应的日志 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. ---------------------------------------------------------------- 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]
