Closed quqiangsheng closed 4 years ago
I found a solution i use rocketmq-spring-boot-starter.version 2.1.0 when implement RocketMQLocalTransactionListener checkLocalTransaction(Message msg) method String checkTimes = (String) msg.getHeaders().get(MessageConst.PROPERTY_TRANSACTION_CHECK_TIMES); if use rocketmq-client I think it's easier
I hope to get the data of the number of times the transaction is backchecked when the transaction is backchecked, so as to facilitate the subsequent judgment. For example, when the transaction is backchecked more than three times, the transaction is rolled back and logged.