This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 1b3b3a8 Adding exception message with broker addr when occuring
broker connect timeout (#3772)
1b3b3a8 is described below
commit 1b3b3a814628c730506db366fc9174ed33553f32
Author: sunhangda <[email protected]>
AuthorDate: Wed Jan 19 11:07:52 2022 +0800
Adding exception message with broker addr when occuring broker connect
timeout (#3772)
* fix:when broker is down,async send model can not retry
* fix Issue #3556
* fix Issue #3556
* fix Issue #3556
* fix Issue #3556
* async send model success retry when occurs Exception
* test case testSendMessageAsync_WithException
* modify test case testSendMessageAsync_WithException
* adding exception message with broker addr when occuring broker connect
timeout
* repair code style
---
.../java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
index 5697465..cbd17fa 100644
---
a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
+++
b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
@@ -375,7 +375,7 @@ public class NettyRemotingClient extends
NettyRemotingAbstract implements Remoti
doBeforeRpcHooks(addr, request);
long costTime = System.currentTimeMillis() - beginStartTime;
if (timeoutMillis < costTime) {
- throw new RemotingTimeoutException("invokeSync call
timeout");
+ throw new RemotingTimeoutException("invokeSync call the
addr[" + addr + "] timeout");
}
RemotingCommand response = this.invokeSyncImpl(channel,
request, timeoutMillis - costTime);
doAfterRpcHooks(RemotingHelper.parseChannelRemoteAddr(channel), request,
response);
@@ -525,7 +525,7 @@ public class NettyRemotingClient extends
NettyRemotingAbstract implements Remoti
doBeforeRpcHooks(addr, request);
long costTime = System.currentTimeMillis() - beginStartTime;
if (timeoutMillis < costTime) {
- throw new RemotingTooMuchRequestException("invokeAsync
call timeout");
+ throw new RemotingTooMuchRequestException("invokeAsync
call the addr[" + addr + "] timeout");
}
this.invokeAsyncImpl(channel, request, timeoutMillis -
costTime, invokeCallback);
} catch (RemotingSendRequestException e) {