Skip to content

Commit 2622ba3

Browse files
author
tigerweili
committed
Merge branch 'develop'
2 parents 1b420ce + b606d9c commit 2622ba3

File tree

264 files changed

+8363
-3879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+8363
-3879
lines changed

.travis.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ matrix:
1818
# On Linux we install latest OpenJDK 1.8 from Ubuntu repositories
1919
- name: Linux x86_64
2020
arch: amd64
21-
# - name: Linux aarch64
22-
# arch: arm64
21+
- name: Linux aarch64
22+
dist: focal
23+
arch: arm64-graviton2
24+
group: edge
25+
virt: vm
2326

2427
cache:
2528
directories:
@@ -45,11 +48,11 @@ before_script:
4548
- ulimit -c unlimited
4649

4750
script:
48-
- mvn verify -DskipTests
51+
- mvn -B verify -DskipTests
4952
- travis_retry mvn -B clean apache-rat:check
50-
- travis_retry mvn -B package jacoco:report coveralls:report
53+
- travis_retry mvn -B install jacoco:report coveralls:report
54+
- travis_retry mvn -B clean install -pl test -Pit-test
5155

5256
after_success:
53-
- mvn clean install -Pit-test
5457
- mvn sonar:sonar -Psonar-apache
5558
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'

README.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ It offers a variety of features:
1818
* A variety of cross language clients, such as Java, [C/C++](https://github.com/apache/rocketmq-client-cpp), [Python](https://github.com/apache/rocketmq-client-python), [Go](https://github.com/apache/rocketmq-client-go), [Node.js](https://github.com/apache/rocketmq-client-nodejs)
1919
* Pluggable transport protocols, such as TCP, SSL, AIO
2020
* Built-in message tracing capability, also support opentracing
21-
* Versatile big-data and streaming ecosytem integration
21+
* Versatile big-data and streaming ecosystem integration
2222
* Message retroactivity by time or offset
2323
* Reliable FIFO and strict ordered messaging in the same queue
2424
* Efficient pull and push consumption model
@@ -31,9 +31,23 @@ It offers a variety of features:
3131
* Feature-rich administrative dashboard for configuration, metrics and monitoring
3232
* Authentication and authorization
3333
* Free open source connectors, for both sources and sinks
34-
34+
* Lightweight real-time computing
3535
----------
3636

37+
## Apache RocketMQ Community
38+
* [RocketMQ Streams](https://github.com/apache/rocketmq-streams)
39+
* [RocketMQ Flink](https://github.com/apache/rocketmq-flink)
40+
* [RocketMQ Client CPP](https://github.com/apache/rocketmq-client-cpp)
41+
* [RocketMQ Client Go](https://github.com/apache/rocketmq-client-go)
42+
* [RocketMQ Client Python](https://github.com/apache/rocketmq-client-python)
43+
* [RocketMQ Client Nodejs](https://github.com/apache/rocketmq-client-nodejs)
44+
* [RocketMQ Spring](https://github.com/apache/rocketmq-spring)
45+
* [RocketMQ Exporter](https://github.com/apache/rocketmq-exporter)
46+
* [RocketMQ Operator](https://github.com/apache/rocketmq-operator)
47+
* [RocketMQ Docker](https://github.com/apache/rocketmq-docker)
48+
* [RocketMQ Incubating Community Projects](https://github.com/apache/rocketmq-externals)
49+
50+
----------
3751
## Learn it & Contact us
3852
* Mailing Lists: <https://rocketmq.apache.org/about/contact/>
3953
* Home: <https://rocketmq.apache.org>
@@ -46,9 +60,7 @@ It offers a variety of features:
4660

4761
----------
4862

49-
## Apache RocketMQ Community
50-
* [RocketMQ Community Projects](https://github.com/apache/rocketmq-externals)
51-
----------
63+
5264

5365
## Contributing
5466
We always welcome new contributions, whether for trivial cleanups, [big new features](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal) or other material rewards, more details see [here](http://rocketmq.apache.org/docs/how-to-contribute/).

acl/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<parent>
1414
<groupId>org.apache.rocketmq</groupId>
1515
<artifactId>rocketmq-all</artifactId>
16-
<version>4.9.3-SNAPSHOT</version>
16+
<version>4.9.4-SNAPSHOT</version>
1717
</parent>
1818
<artifactId>rocketmq-acl</artifactId>
1919
<name>rocketmq-acl ${project.version}</name>

acl/src/main/java/org/apache/rocketmq/acl/AccessValidator.java

+13
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
package org.apache.rocketmq.acl;
1919

2020
import java.util.List;
21+
import java.util.Map;
22+
2123
import org.apache.rocketmq.common.AclConfig;
24+
import org.apache.rocketmq.common.DataVersion;
2225
import org.apache.rocketmq.common.PlainAccessConfig;
2326
import org.apache.rocketmq.remoting.protocol.RemotingCommand;
2427

@@ -60,17 +63,27 @@ public interface AccessValidator {
6063
*
6164
* @return
6265
*/
66+
@Deprecated
6367
String getAclConfigVersion();
6468

6569
/**
6670
* Update globalWhiteRemoteAddresses in acl yaml config file
71+
*
6772
* @return
6873
*/
6974
boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList);
7075

7176
/**
7277
* get broker cluster acl config information
78+
*
7379
* @return
7480
*/
7581
AclConfig getAllAclConfig();
82+
83+
/**
84+
* get all access resource config version information
85+
*
86+
* @return
87+
*/
88+
Map<String, DataVersion> getAllAclConfigVersion();
7689
}

acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static boolean isColon(String netaddress) {
163163
}
164164

165165
public static boolean isScope(String num) {
166-
return isScope(Integer.valueOf(num.trim()));
166+
return isScope(Integer.parseInt(num.trim()));
167167
}
168168

169169
public static boolean isScope(int num) {

acl/src/main/java/org/apache/rocketmq/acl/plain/PlainAccessValidator.java

+17-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.apache.rocketmq.acl.common.Permission;
2828
import org.apache.rocketmq.acl.common.SessionCredentials;
2929
import org.apache.rocketmq.common.AclConfig;
30+
import org.apache.rocketmq.common.DataVersion;
3031
import org.apache.rocketmq.common.MixAll;
3132
import org.apache.rocketmq.common.PlainAccessConfig;
3233
import org.apache.rocketmq.common.protocol.RequestCode;
@@ -127,7 +128,7 @@ public AccessResource parse(RemotingCommand request, String remoteAddr) {
127128
SortedMap<String, String> map = new TreeMap<String, String>();
128129
for (Map.Entry<String, String> entry : request.getExtFields().entrySet()) {
129130
if (!SessionCredentials.SIGNATURE.equals(entry.getKey())
130-
&& !MixAll.UNIQUE_MSG_QUERY_FLAG.equals(entry.getKey())) {
131+
&& !MixAll.UNIQUE_MSG_QUERY_FLAG.equals(entry.getKey())) {
131132
map.put(entry.getKey(), entry.getValue());
132133
}
133134
}
@@ -150,7 +151,7 @@ public boolean deleteAccessConfig(String accesskey) {
150151
return aclPlugEngine.deleteAccessConfig(accesskey);
151152
}
152153

153-
@Override public String getAclConfigVersion() {
154+
@Override public String getAclConfigVersion() {
154155
return aclPlugEngine.getAclConfigDataVersion();
155156
}
156157

@@ -161,4 +162,18 @@ public boolean deleteAccessConfig(String accesskey) {
161162
@Override public AclConfig getAllAclConfig() {
162163
return aclPlugEngine.getAllAclConfig();
163164
}
165+
166+
public Map<String, Object> createAclAccessConfigMap(Map<String, Object> existedAccountMap,
167+
PlainAccessConfig plainAccessConfig) {
168+
return aclPlugEngine.createAclAccessConfigMap(existedAccountMap, plainAccessConfig);
169+
}
170+
171+
public Map<String, Object> updateAclConfigFileVersion(Map<String, Object> updateAclConfigMap) {
172+
return aclPlugEngine.updateAclConfigFileVersion(updateAclConfigMap);
173+
}
174+
175+
@Override
176+
public Map<String, DataVersion> getAllAclConfigVersion() {
177+
return aclPlugEngine.getDataVersionMap();
178+
}
164179
}

0 commit comments

Comments
 (0)