You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/11/30 10:31:29 UTC

[GitHub] [rocketmq] XiaoyiPeng commented on pull request #3555: [Issue #3556] Fix:When broker is down, rocketmq client can not retry under Async send model

XiaoyiPeng commented on pull request #3555:
URL: https://github.com/apache/rocketmq/pull/3555#issuecomment-982503190


   Asynchronous retry is here, in class `DefaultMQProducerImpl`, line: 843
   ```java
   private SendResult sendKernelImpl(final Message msg,
           final MessageQueue mq,
           final CommunicationMode communicationMode,
           final SendCallback sendCallback,
           final TopicPublishInfo topicPublishInfo,
           final long timeout) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
   // ...
   // line#843:
   sendResult = this.mQClientFactory.getMQClientAPIImpl().sendMessage(
                               brokerAddr,
                               mq.getBrokerName(),
                               tmpMessage,
                               requestHeader,
                               timeout - costTimeAsync,
                               communicationMode,
                               sendCallback,
                               topicPublishInfo,
                               this.mQClientFactory,
                               this.defaultMQProducer.getRetryTimesWhenSendAsyncFailed(),
                               context,
                               this);
   
   }
   ```


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

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org