Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Apache RocketMQ
Rocketmq
提交
dd09ba1e
R
Rocketmq
项目概览
Apache RocketMQ
/
Rocketmq
上一次同步 大约 3 年
通知
268
Star
16139
Fork
68
代码
文件
提交
分支
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看板
提交
dd09ba1e
编写于
9月 24, 2021
作者:
O
odbozhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
merger from develop branch and fix compile error
上级
2bf133be
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
7 addition
and
11 deletion
+7
-11
acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java
...rc/main/java/org/apache/rocketmq/acl/common/AclUtils.java
+3
-4
broker/src/main/java/org/apache/rocketmq/broker/processor/AbstractSendMessageProcessor.java
...cketmq/broker/processor/AbstractSendMessageProcessor.java
+1
-1
client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java
.../rocketmq/client/impl/producer/DefaultMQProducerImpl.java
+1
-0
common/src/main/java/org/apache/rocketmq/common/stats/StatsItem.java
...main/java/org/apache/rocketmq/common/stats/StatsItem.java
+0
-1
common/src/test/java/org/apache/rocketmq/common/UtilAllTest.java
...src/test/java/org/apache/rocketmq/common/UtilAllTest.java
+2
-1
namesrv/src/main/java/org/apache/rocketmq/namesrv/processor/DefaultRequestProcessor.java
...e/rocketmq/namesrv/processor/DefaultRequestProcessor.java
+0
-2
namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java
...g/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java
+0
-2
未找到文件。
acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java
浏览文件 @
dd09ba1e
...
...
@@ -23,7 +23,6 @@ import java.io.FileNotFoundException;
import
java.io.FileWriter
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.util.ArrayList
;
import
java.util.Map
;
import
java.util.SortedMap
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -210,9 +209,9 @@ public class AclUtils {
// expand netaddress
int
separatorCount
=
StringUtils
.
countMatches
(
netaddress
,
":"
);
int
padCount
=
part
-
separatorCount
;
if
(
padCount
>
0
)
{
if
(
padCount
>
0
)
{
StringBuilder
padStr
=
new
StringBuilder
(
":"
);
for
(
int
i
=
0
;
i
<
padCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
padCount
;
i
++)
{
padStr
.
append
(
":"
);
}
netaddress
=
StringUtils
.
replace
(
netaddress
,
"::"
,
padStr
.
toString
());
...
...
@@ -221,7 +220,7 @@ public class AclUtils {
// pad netaddress
String
[]
strArray
=
StringUtils
.
splitPreserveAllTokens
(
netaddress
,
":"
);
for
(
int
i
=
0
;
i
<
strArray
.
length
;
i
++)
{
if
(
strArray
[
i
].
length
()
<
4
)
{
if
(
strArray
[
i
].
length
()
<
4
)
{
strArray
[
i
]
=
StringUtils
.
leftPad
(
strArray
[
i
],
4
,
'0'
);
}
}
...
...
broker/src/main/java/org/apache/rocketmq/broker/processor/AbstractSendMessageProcessor.java
浏览文件 @
dd09ba1e
...
...
@@ -24,7 +24,7 @@ import java.net.SocketAddress;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.Map
;
Optional
import
java.util.Map
;
import
java.util.concurrent.ThreadLocalRandom
;
...
...
client/src/main/java/org/apache/rocketmq/client/impl/producer/DefaultMQProducerImpl.java
浏览文件 @
dd09ba1e
...
...
@@ -88,6 +88,7 @@ import org.apache.rocketmq.common.message.MessageId;
import
org.apache.rocketmq.common.message.MessageQueue
;
import
org.apache.rocketmq.common.message.MessageType
;
import
org.apache.rocketmq.common.protocol.NamespaceUtil
;
import
org.apache.rocketmq.common.protocol.ResponseCode
;
import
org.apache.rocketmq.common.protocol.header.CheckTransactionStateRequestHeader
;
import
org.apache.rocketmq.common.protocol.header.EndTransactionRequestHeader
;
import
org.apache.rocketmq.common.protocol.header.SendMessageRequestHeader
;
...
...
common/src/main/java/org/apache/rocketmq/common/stats/StatsItem.java
浏览文件 @
dd09ba1e
...
...
@@ -20,7 +20,6 @@ package org.apache.rocketmq.common.stats;
import
java.util.LinkedList
;
import
java.util.concurrent.ScheduledExecutorService
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.atomic.AtomicLong
;
import
java.util.concurrent.atomic.LongAdder
;
import
org.apache.rocketmq.common.UtilAll
;
...
...
common/src/test/java/org/apache/rocketmq/common/UtilAllTest.java
浏览文件 @
dd09ba1e
...
...
@@ -119,7 +119,8 @@ public class UtilAllTest {
String
comma
=
","
;
assertEquals
(
"groupA=DENY,groupB=PUB|SUB,groupC=SUB"
,
UtilAll
.
join
(
list
,
comma
));
assertEquals
(
null
,
UtilAll
.
join
(
null
,
comma
));
assertEquals
(
""
,
UtilAll
.
join
(
Collections
.
emptyList
(),
comma
));
List
<
String
>
objects
=
Collections
.
emptyList
();
assertEquals
(
""
,
UtilAll
.
join
(
objects
,
comma
));
}
static
class
DemoConfig
{
...
...
namesrv/src/main/java/org/apache/rocketmq/namesrv/processor/DefaultRequestProcessor.java
浏览文件 @
dd09ba1e
...
...
@@ -56,8 +56,6 @@ import org.apache.rocketmq.common.protocol.header.namesrv.WipeWritePermOfBrokerR
import
org.apache.rocketmq.common.protocol.route.LogicalQueuesInfoUnordered
;
import
org.apache.rocketmq.common.protocol.route.TopicRouteDataNameSrv
;
import
org.apache.rocketmq.common.sysflag.MessageSysFlag
;
import
org.apache.rocketmq.logging.InternalLogger
;
import
org.apache.rocketmq.logging.InternalLoggerFactory
;
import
org.apache.rocketmq.namesrv.NamesrvController
;
import
org.apache.rocketmq.remoting.common.RemotingHelper
;
import
org.apache.rocketmq.remoting.exception.RemotingCommandException
;
...
...
namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java
浏览文件 @
dd09ba1e
...
...
@@ -50,8 +50,6 @@ import org.apache.rocketmq.common.protocol.route.LogicalQueuesInfoUnordered;
import
org.apache.rocketmq.common.protocol.route.QueueData
;
import
org.apache.rocketmq.common.protocol.route.TopicRouteDataNameSrv
;
import
org.apache.rocketmq.common.sysflag.TopicSysFlag
;
import
org.apache.rocketmq.logging.InternalLogger
;
import
org.apache.rocketmq.logging.InternalLoggerFactory
;
import
org.apache.rocketmq.remoting.common.RemotingUtil
;
import
org.apache.rocketmq.srvutil.ConcurrentHashMapUtil
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录