Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Kwan的解忧杂货铺@新空间代码工作室
Rocketmq
提交
15c2b55a
R
Rocketmq
项目概览
Kwan的解忧杂货铺@新空间代码工作室
/
Rocketmq
与 Fork 源项目一致
Fork自
Apache RocketMQ / Rocketmq
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rocketmq
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
15c2b55a
编写于
4月 17, 2017
作者:
J
Jaskey
提交者:
dongeforever
6月 06, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ROCKETMQ-172]log improvement for rocketmq client closes apache/incubator-rocketmq#90
上级
051527d4
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
4 deletion
+6
-4
client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java
...java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java
+3
-3
client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java
...apache/rocketmq/client/impl/factory/MQClientInstance.java
+1
-1
remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
...g/apache/rocketmq/remoting/netty/NettyRemotingClient.java
+2
-0
未找到文件。
client/src/main/java/org/apache/rocketmq/client/impl/MQClientAPIImpl.java
浏览文件 @
15c2b55a
...
...
@@ -593,12 +593,12 @@ public class MQClientAPIImpl {
}
}
else
{
if
(!
responseFuture
.
isSendRequestOK
())
{
pullCallback
.
onException
(
new
MQClientException
(
"send request failed
"
,
responseFuture
.
getCause
()));
pullCallback
.
onException
(
new
MQClientException
(
"send request failed
to "
+
addr
+
". Request: "
+
request
,
responseFuture
.
getCause
()));
}
else
if
(
responseFuture
.
isTimeout
())
{
pullCallback
.
onException
(
new
MQClientException
(
"wait response
timeout "
+
responseFuture
.
getTimeoutMillis
()
+
"ms"
,
pullCallback
.
onException
(
new
MQClientException
(
"wait response
from "
+
addr
+
" timeout :"
+
responseFuture
.
getTimeoutMillis
()
+
"ms"
+
". Request: "
+
request
,
responseFuture
.
getCause
()));
}
else
{
pullCallback
.
onException
(
new
MQClientException
(
"unknow
reseaon"
,
responseFuture
.
getCause
()));
pullCallback
.
onException
(
new
MQClientException
(
"unknow
n reason. addr: "
+
addr
+
", timeoutMillis: "
+
timeoutMillis
+
". Request: "
+
request
,
responseFuture
.
getCause
()));
}
}
}
...
...
client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java
浏览文件 @
15c2b55a
...
...
@@ -596,7 +596,7 @@ public class MQClientInstance {
}
}
}
log
.
info
(
"topicRouteTable.put
TopicRouteData[{}]"
,
cloneTopicRouteData
);
log
.
info
(
"topicRouteTable.put
. Topic = {}, TopicRouteData[{}]"
,
topic
,
cloneTopicRouteData
);
this
.
topicRouteTable
.
put
(
topic
,
cloneTopicRouteData
);
return
true
;
}
...
...
remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
浏览文件 @
15c2b55a
...
...
@@ -321,6 +321,7 @@ public class NettyRemotingClient extends NettyRemotingAbstract implements Remoti
if
(
update
)
{
Collections
.
shuffle
(
addrs
);
log
.
info
(
"name server address updated. NEW : {} , OLD: {}"
,
addrs
,
old
);
this
.
namesrvAddrList
.
set
(
addrs
);
}
}
...
...
@@ -398,6 +399,7 @@ public class NettyRemotingClient extends NettyRemotingAbstract implements Remoti
String
newAddr
=
addrList
.
get
(
index
);
this
.
namesrvAddrChoosed
.
set
(
newAddr
);
log
.
info
(
"new name server is chosen. OLD: {} , NEW: {}. namesrvIndex = {}"
,
addr
,
newAddr
,
namesrvIndex
);
Channel
channelNew
=
this
.
createChannel
(
newAddr
);
if
(
channelNew
!=
null
)
return
channelNew
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录