Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
Rocketmq
提交
cc0b3d09
R
Rocketmq
项目概览
s920243400
/
Rocketmq
与 Fork 源项目一致
Fork自
Apache RocketMQ / Rocketmq
通知
1
Star
1
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看板
提交
cc0b3d09
编写于
12月 20, 2017
作者:
L
lindzh
提交者:
von gosling
12月 20, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ROCKETMQ-336] Wrong format System.out.printf used in mqadmin (#208)
上级
c7fea667
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
9 deletion
+8
-9
broker/src/main/java/org/apache/rocketmq/broker/BrokerStartup.java
...c/main/java/org/apache/rocketmq/broker/BrokerStartup.java
+1
-2
namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java
...main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java
+2
-2
tools/src/main/java/org/apache/rocketmq/tools/command/cluster/CLusterSendMsgRTCommand.java
...cketmq/tools/command/cluster/CLusterSendMsgRTCommand.java
+1
-1
tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerSubCommand.java
...e/rocketmq/tools/command/consumer/ConsumerSubCommand.java
+1
-1
tools/src/main/java/org/apache/rocketmq/tools/command/message/PrintMessageSubCommand.java
...ocketmq/tools/command/message/PrintMessageSubCommand.java
+2
-2
tools/src/main/java/org/apache/rocketmq/tools/command/topic/UpdateTopicSubCommand.java
...e/rocketmq/tools/command/topic/UpdateTopicSubCommand.java
+1
-1
未找到文件。
broker/src/main/java/org/apache/rocketmq/broker/BrokerStartup.java
浏览文件 @
cc0b3d09
...
...
@@ -134,8 +134,7 @@ public class BrokerStartup {
MixAll
.
properties2Object
(
ServerUtil
.
commandLine2Properties
(
commandLine
),
brokerConfig
);
if
(
null
==
brokerConfig
.
getRocketmqHome
())
{
System
.
out
.
printf
(
"Please set the "
+
MixAll
.
ROCKETMQ_HOME_ENV
+
" variable in your environment to match the location of the RocketMQ installation"
);
System
.
out
.
printf
(
"Please set the %s variable in your environment to match the location of the RocketMQ installation"
,
MixAll
.
ROCKETMQ_HOME_ENV
);
System
.
exit
(-
2
);
}
...
...
namesrv/src/main/java/org/apache/rocketmq/namesrv/NamesrvStartup.java
浏览文件 @
cc0b3d09
...
...
@@ -72,7 +72,7 @@ public class NamesrvStartup {
namesrvConfig
.
setConfigStorePath
(
file
);
System
.
out
.
printf
(
"load config properties file OK,
"
+
file
+
"%n"
);
System
.
out
.
printf
(
"load config properties file OK,
%s%n"
,
file
);
in
.
close
();
}
}
...
...
@@ -123,7 +123,7 @@ public class NamesrvStartup {
String
tip
=
"The Name Server boot success. serializeType="
+
RemotingCommand
.
getSerializeTypeConfigInThisServer
();
log
.
info
(
tip
);
System
.
out
.
printf
(
tip
+
"%n"
);
System
.
out
.
printf
(
"%s%n"
,
tip
);
return
controller
;
}
catch
(
Throwable
e
)
{
...
...
tools/src/main/java/org/apache/rocketmq/tools/command/cluster/CLusterSendMsgRTCommand.java
浏览文件 @
cc0b3d09
...
...
@@ -171,7 +171,7 @@ public class CLusterSendMsgRTCommand implements SubCommand {
failCount
);
}
else
{
System
.
out
.
printf
(
String
.
format
(
"%s|%s|%s|%s|%s%n"
,
getCurTime
(),
System
.
out
.
printf
(
"%s"
,
String
.
format
(
"%s|%s|%s|%s|%s%n"
,
getCurTime
(),
machineRoom
,
clusterName
,
brokerName
,
new
BigDecimal
(
rt
).
setScale
(
0
,
BigDecimal
.
ROUND_HALF_UP
)));
}
...
...
tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerSubCommand.java
浏览文件 @
cc0b3d09
...
...
@@ -126,7 +126,7 @@ public class ConsumerSubCommand implements SubCommand {
ConsumerRunningInfo
consumerRunningInfo
=
defaultMQAdminExt
.
getConsumerRunningInfo
(
group
,
clientId
,
jstack
);
if
(
consumerRunningInfo
!=
null
)
{
System
.
out
.
printf
(
consumerRunningInfo
.
formatString
());
System
.
out
.
printf
(
"%s"
,
consumerRunningInfo
.
formatString
());
}
}
}
catch
(
Exception
e
)
{
...
...
tools/src/main/java/org/apache/rocketmq/tools/command/message/PrintMessageSubCommand.java
浏览文件 @
cc0b3d09
...
...
@@ -146,11 +146,11 @@ public class PrintMessageSubCommand implements SubCommand {
printMessage
(
pullResult
.
getMsgFoundList
(),
charsetName
,
printBody
);
break
;
case
NO_MATCHED_MSG:
System
.
out
.
printf
(
mq
+
" no matched msg. status=%s, offset=%s"
,
pullResult
.
getPullStatus
(),
offset
);
System
.
out
.
printf
(
"%s no matched msg. status=%s, offset=%s"
,
mq
,
pullResult
.
getPullStatus
(),
offset
);
break
;
case
NO_NEW_MSG:
case
OFFSET_ILLEGAL:
System
.
out
.
printf
(
mq
+
" print msg finished. status=%s, offset=%s"
,
pullResult
.
getPullStatus
(),
offset
);
System
.
out
.
printf
(
"%s print msg finished. status=%s, offset=%s"
,
mq
,
pullResult
.
getPullStatus
(),
offset
);
break
READQ
;
}
}
catch
(
Exception
e
)
{
...
...
tools/src/main/java/org/apache/rocketmq/tools/command/topic/UpdateTopicSubCommand.java
浏览文件 @
cc0b3d09
...
...
@@ -138,7 +138,7 @@ public class UpdateTopicSubCommand implements SubCommand {
String
brokerName
=
CommandUtil
.
fetchBrokerNameByAddr
(
defaultMQAdminExt
,
addr
);
String
orderConf
=
brokerName
+
":"
+
topicConfig
.
getWriteQueueNums
();
defaultMQAdminExt
.
createOrUpdateOrderConf
(
topicConfig
.
getTopicName
(),
orderConf
,
false
);
System
.
out
.
printf
(
String
.
format
(
"set broker orderConf. isOrder=%s, orderConf=[%s]"
,
System
.
out
.
printf
(
"%s"
,
String
.
format
(
"set broker orderConf. isOrder=%s, orderConf=[%s]"
,
isOrder
,
orderConf
.
toString
()));
}
System
.
out
.
printf
(
"create topic to %s success.%n"
,
addr
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录