xiangwangcheng commented on issue #1588: Retry doesn't work when sending msg in 
aync mode(eg. when broker is down)
URL: https://github.com/apache/rocketmq/issues/1588#issuecomment-555913743
 
 
   I think reuse the for-loop retry logic of sending messages in sync mode is 
also OK.
   
![image](https://user-images.githubusercontent.com/8049014/69225381-3be5e980-0bb9-11ea-83d8-5da7b21a55a2.png)
   `int timesTotal = communicationMode != CommunicationMode.ONEWAY ? 1 + 
this.defaultMQProducer.getRetryTimesWhenSendFailed() : 1;`

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to