zhongkaiuu opened a new issue #1921: one of broker crashed,producer select 
other broker success,but throws MQClientException
URL: https://github.com/apache/rocketmq/issues/1921
 
 
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   we set retryTimesWhenSendFailed=3
   we set send timeout=3000
   we set sendLatencyFaultEnable=false
   we have 4 broker(broker-a,broker-b,broker-c,broker-d), make broker-a crash.
   producer send message but throws 
org.apache.rocketmq.client.exception.MQClientException: Send [3] times, still 
failed, cost [3000]ms, Topic: xxxx, BrokersSent: [broker-a, broker-b, broker-c]
   
   - What did you expect to see?
   broker-a crashed,retry broker-b success,don't throws Exception
   
   - What did you see instead?
   
![image](https://user-images.githubusercontent.com/2378042/78765463-993cd480-79ba-11ea-8dd4-7339fcd93ef3.png)
   picture1 has select broker-b and broker-c,but sendtime is 0.
   
   
![image](https://user-images.githubusercontent.com/2378042/78765860-25e79280-79bb-11ea-97c2-bbe8f7ef79fe.png)
   picture2 is rocketmq_client.log,we can see send broker-a is timeout,but 
broker-b and broker-c timeout is 0.
   
   
![image](https://user-images.githubusercontent.com/2378042/78766526-f422fb80-79bb-11ea-8e92-7cd7338aa2df.png)
   picture3 is console message page.there is two success message from broker-b 
and broker-c.
   
   
![image](https://user-images.githubusercontent.com/2378042/78767481-3b5dbc00-79bd-11ea-891a-2d0f3d485757.png)
   DefaultMQProducerImpl.sendDefaultImpl(), broker-a is costtime=3000. 
   if (timeout < costTime) should be if (timeout <= costTime) ?
   
   NettyRemotingAbstract.invokeSyncImpl()
   // timeoutMillis is zero, can't wait response. this is why broker-b and 
broker-c has success message,but throws Exception.
   `RemotingCommand responseCommand = 
responseFuture.waitResponse(timeoutMillis);`
   
   2. Please tell us about your environment:
   rocketmq-client and broker are 4.3.2
   
   3. Other information (e.g. detailed explanation, logs, related issues, 
suggestions how to fix, etc):
   maybe client can reset timeout when retry other broker?
   
   

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