dongeforever commented on a change in pull request #398: [ISSUE #395]Resolve
compatibility issues and keep consistent with the old API
URL: https://github.com/apache/rocketmq/pull/398#discussion_r210177571
##########
File path:
client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java
##########
@@ -1124,7 +1149,12 @@ public TransactionSendResult
sendMessageInTransaction(final Message msg,
if (null != transactionId && !"".equals(transactionId)) {
msg.setTransactionId(transactionId);
}
- localTransactionState =
tranExecuter.executeLocalTransaction(msg, arg);
+ if (null != localTransactionExecuter) {
+ localTransactionState =
localTransactionExecuter.executeLocalTransactionBranch(msg, arg);
+ } else if (transactionListener != null) {
+ log.info("Used new transaction API");
Review comment:
debug is recommended
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services