SeaItFover commented on issue #4720:
URL: https://github.com/apache/rocketmq/issues/4720#issuecomment-1200335562

   > **BUG REPORT**
   > 
   > 1. Please describe the issue you observed:
   > 
   > * What did you do (The steps to reproduce)?
   > * While sending, kill master
   > * What is expected to see?
   > * The client does not report an error
   > * What did you see instead?
   > * send error, timeout
   > 
   > When the broker master fails,Clients cannot choose to send to other broker 
masters。 When the broker master fails,return timeout,Client will not retry。 
This is because the first occurrence of the client consumes all the 
timeout。when return timeout ,The client will consume all timeouts.No time left 
to retry
   > 
   > DefaultMQProducerImpl# 607 sendResult = this.sendKernelImpl(msg, mq, 
communicationMode, sendCallback, topicPublishInfo, timeout - costTime);
   
   I dont think this is a bug, in sync mode, the argument of timout is provided 
by the application layer, total retry timeout consume the timeout together. In 
async mode, only retry once.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to