Commit Graph

8562 Commits

Author SHA1 Message Date
Lei Zhiyuan 09beca60eb [ISSUE #8549] Ipv6 enabled in broker, pickupStoreTimestamp size should be 20 (#8567)
* fix: when ipv6 enabled in broker, pickupStoreTimestamp size should be 12(20-8)

* fix: when ipv6 enabled in broker, pickupStoreTimestamp size should be 20
2024-08-21 13:44:26 +08:00
yx9o e96e4456f9 [ISSUE #8562] Add more test coverage for StatefulAuthorizationStrategy (#8563)
* [ISSUE #8562] Add more test coverage for StatefulAuthorizationStrategy

* Update

* Update
2024-08-21 10:58:49 +08:00
syhleo e2885acc52 [ISSUE #8553] Add UnitTest of OffsetSerialize (#8554)
* [ISSUE #8553] Add UnitTest of ZoneRouteRPCHook、OffsetSerialize
2024-08-21 10:57:59 +08:00
小陈 18f5f28af5 Set specific permissions to trigger the retry mechanism (#8566) 2024-08-21 10:57:08 +08:00
Lei Zhiyuan 8b7f9cc5ef [ISSUE #8534] Supports timer message queries (#8535) 2024-08-20 11:09:07 +08:00
yx9o 2d901f1650 [ISSUE #8551] Add more test coverage for AuthMigrator (#8552) 2024-08-19 14:55:35 +08:00
syhleo 39f289af24 [ISSUE #8547] Add UnitTest of ControllableOffset (#8548) 2024-08-18 15:19:21 +08:00
小陈 b512ba1a28 [ISSUE #8544] Add a retry mechanism to the unit test pipeline (#8545)
* Add a retry mechanism to the unit test pipeline
* Remove the permissions field
2024-08-16 15:30:20 +08:00
yx9o 2f482e2ff9 [ISSUE #8517] Add more test coverage for PullMessageService (#8542) 2024-08-16 14:31:03 +08:00
Hard_X 9059fcddd8 [ISSUE #8519] Add test case for rocketmq acl module. (#8508)
* add AuthorizationHeaderTest

* add PlainPermissionCheckerTest

* add license header for AuthorizationHeaderTest and PlainPermissionCheckerTest

* Update
2024-08-16 14:30:32 +08:00
zekai-li aa788e8796 [ISSUE #8289] Fixed network bugs and merged networkutil code (#8290)
* [ISSUE #8289] Fixed network bugs and merged networkutil code
Fix the following three as
1,TraceBean: private static final String LOCAL_ADDRESS = UtilAll.ipToIPv4Str(UtilAll.getIP()); getIP mayby ipv6
2,NetworkUtil:if (ip.startsWith("127.0") || ip.startsWith("192.168") || ip.startsWith("0."));Check whether Intranet errors exist

* [ISSUE #8289] Fixed network bugs and merged networkutil code
Fix the following three as
1,TraceBean: private static final String LOCAL_ADDRESS = UtilAll.ipToIPv4Str(UtilAll.getIP()); getIP mayby ipv6
2,NetworkUtil:if (ip.startsWith("127.0") || ip.startsWith("192.168") || ip.startsWith("0."));Check whether Intranet errors exist
2024-08-16 00:33:35 +08:00
Lei Zhiyuan 7964f06f27 [ISSUE #8531]Update jaeger-thrift, exclude unnecessary tomcat-embed-core 2024-08-15 10:39:27 +08:00
bxfjb 227be2cf91 [ISSUE #8532] Fix flush metadata when commit file because of full file (#8533) 2024-08-14 23:42:26 +08:00
imzs 524ca4e862 [ISSUE #8460] Improve the pop revive process when reading biz messages from a remote broker - part2 (#8494) 2024-08-14 13:48:44 +08:00
yx9o d3d7b280a1 [ISSUE #8517] Add more test coverage for PullAPIWrapper (#8518)
* [ISSUE #8517] Add more test coverage for PullAPIWrapper

* Update

* Update
2024-08-14 10:18:19 +08:00
吴星灿 7f5bf5f893 [ISSUE #8517] Fix client send UNREGISTER_CLIENT request twice may cause proxy NPE (#8528) 2024-08-13 17:21:11 +08:00
dinglei fa0cd49df2 [ISSUE #8499]Modify batch send delay time to 3000ms in unit test. (#8522)
* modify batch send delay time to 3000ms in unit test.

* close unittest in macOS platform.

* close unittest in macOS platform checking.

* close broker regest timeout unittest in macOS platform checking.

* close broker regest timeout unittest in macOS platform checking.

* modify batch send delay time to 3000ms in unit test.
2024-08-13 11:33:12 +08:00
小陈 aed259b4c9 [ISSUE #8510] Fix CI Failure in Test E2E Golang Job of PUSH-CI and PR-E2E-TEST (#8520)
* Modify the golang e2e test script

* Update cmd

* Revert changes to push-ci.yml

* Update go version
2024-08-12 17:29:01 +08:00
yx9o 606cefeb31 [ISSUE #8514] Fix bazel-compile (ubuntu-latest) ci run failure (#8515)
* [ISSUE #8514] Fix bazel-compile (ubuntu-latest) ci run failure

* Update

* Update
2024-08-10 21:07:36 +08:00
我是管小亮_V0x3f 8167608334 [ISSUE #8503] Add test cases for org.apache.rocketmq.common.chain/coldstr/compression/consumer (#8504)
* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8417

Brief Description
add test case for AclConfig in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8476

Brief Description
add test case for org.apache.rocketmq.common.attribute in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8476

Brief Description
add test case for org.apache.rocketmq.common.attribute in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
Add test cases for org.apache.rocketmq.common.chain/coldstr/compression/consumer
Fixes apache#8503

Brief Description
add test case for org.apache.rocketmq.common.chain/coldstr/compression/consumer in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
Add test cases for org.apache.rocketmq.common.chain/coldstr/compression/consumer
Fixes #8503

Brief Description
add test case for org.apache.rocketmq.common.chain/coldstr/compression/consumer in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
Add test cases for org.apache.rocketmq.common.chain/coldstr/compression/consumer
Fixes #8503

Brief Description
add test case for org.apache.rocketmq.common.chain/coldstr/compression/consumer in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.
2024-08-08 10:47:14 +08:00
yx9o f4deb0e226 [ISSUE #8496] Add more test coverage for ConsumeMessagePopOrderlyService (#8497)
* [ISSUE #8496] Add more test coverage for ConsumeMessagePopOrderlyService

* Update
2024-08-08 10:46:37 +08:00
guning f7c27bba2a [ISSUE #8500] Add more test coverage for RocksDBLmqConsumerOffsetManager (#8502)
* ```新增RocksDBLmqConsumerOffsetManagerTest.java测试用例```

* ```新增RocksDBLmqConsumerOffsetManagerTest.java测试用例```

* ```新增RocksDBLmqConsumerOffsetManagerTest.java测试用例```
2024-08-08 10:45:15 +08:00
ziiyee cba8a64b08 [ISSUE #8486]Add more test coverage for BrokerMetricsManager (#8487)
* Add more test case for BrokerMetricsManager. Includes:
- check the topic is retry or dlq topic
- check the group is system group or not
- check the topic and the group belongs to system or not

* Add more test case for BrokerMetricsManager. Check topic message type by request header.

* Add more test case for BrokerMetricsManager.

* Add more test case for BrokerMetricsManager.
2024-08-07 10:05:19 +08:00
lizhimins f63a3bae95 [ISSUE #8481] Improve delete and rolling strategy for tiered storage modules (#8493) 2024-08-06 17:19:45 +08:00
Tan Xiang 87fb1f5f7b [ISSUE #8495] Add more test coverage for PeekMessageProcessor (#8498)
* [ISSUE #8495]add more test coverage for PeekMessageProcessor

* [ISSUE #8495]add more test coverage for PeekMessageProcessor
2024-08-06 14:04:10 +08:00
yx9o 25b1a0e00e [ISSUE #8490] Fix getMaxReconsumeTimes calculation error in concurrent consumption mode (#8491)
* [ISSUE #8490] Fix getMaxReconsumeTimes calculation error in concurrent consumption mode
2024-08-05 10:00:50 +08:00
我是管小亮_V0x3f d94d0751a9 [ISSUE #8476] Add test cases for org.apache.rocketmq.common.attribute (#8477)
* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8417

Brief Description
add test case for AclConfig in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8476

Brief Description
add test case for org.apache.rocketmq.common.attribute in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8476

Brief Description
add test case for org.apache.rocketmq.common.attribute in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8476

Brief Description
add test case for org.apache.rocketmq.common.attribute in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.
2024-08-05 09:53:55 +08:00
imzs aab646ce83 [ISSUE #8460] Improve the pop revive process when reading biz messages from a remote broker (#8475)
* [ISSUE #8460] part1: add extra information to the call chain of remote message reading

* [ISSUE #8460] part2: add exponential backoff and ending condition of CK rewrite, and fix checkstyle

* [ISSUE #8460] exclude test, BrokerOuterAPITest passed locally, but failed on bazel.
2024-08-02 14:43:21 +08:00
TestBoost 2ed4ba23e0 nly initialize all the variables once to speed up test ConsumeMessageConcurrentlyServiceTest (#8436) 2024-08-01 15:17:57 +08:00
lizhimins cd23d6d0d6 [ISSUE #8472] Fix pop message delay due to not notify message arriving after suspend (#8473) 2024-08-01 10:06:53 +08:00
rongtong 3696be0632 [ISSUE #8463] Some statistical items should also be deleted to prevent memory leakage when a topic or group is deleted (#8464)
* Some important statistical items should also be deleted to prevent memory leakage when a topic or group is deleted

* Add UTs
2024-08-01 10:04:11 +08:00
rongtong 69334a708c [ISSUE #8432] Make autoDeleteUnusedStats default to true 2024-08-01 10:01:50 +08:00
yx9o 8fe3451311 [ISSUE #8465] Add more test coverage for ConsumeMessagePopConcurrentlyService (#8466) 2024-07-31 10:56:17 +08:00
Z F f1fe4bf754 [ISSUE #7731] Fix windows runBroker.cmd cannot start (#7731) (#8338)
Co-authored-by: fz <fengzhen123@haier.com>
2024-07-30 09:12:29 +08:00
cserwen ce27e1fc64 [ISSUE #8332] fix: ack msg which has reached maxReconsumeTimes
Co-authored-by: dengzhiwen1 <dengzhiwen1@xiaomi.com>
2024-07-30 09:11:55 +08:00
hqbfz 2d44ec897c [ISSUE #8261] Avoid unnecessary waiting when a response is successfully returned (#8272) 2024-07-29 18:55:55 +08:00
LetLetMe 217fc8da53 [ISSUE #8429] Fix trace message loss when traffic is heavy (#8430) 2024-07-29 17:11:16 +08:00
Qiu 263f0fbdd6 [ISSUE #8448] commitlog class comment optimize 2024-07-29 13:46:46 +08:00
dinglei cc484d5680 [ISSUE #8454] Active brokers number should be initailized to 1 in broker heartbeat manager. (#8453)
* active brokers should be 1 on computing if absent

* active brokers number should be initailized to 1 in broker heartbeat manager.
2024-07-28 17:12:59 +08:00
yx9o 3722431c25 [ISSUE #8458] Add more test coverage for ProcessQueue (#8459)
* [ISSUE #8458] Add more test coverage for ProcessQueue

* Update

* Update

* Update
2024-07-28 17:11:15 +08:00
yx9o 304987d341 [ISSUE #8446] Add more test coverage for MQClientInstance (#8447)
* [ISSUE #8446] Add more test coverage for MQClientInstance

* Update

* Update
2024-07-26 10:23:55 +08:00
我是管小亮_V0x3f 59c8609f43 [ISSUE #8434] Add test cases for org.apache.rocketmq.common.action (#8435)
* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8417

Brief Description
add test case for AclConfig in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* [ISSUE apache#8434] Add more test coverage for Add test cases for org.apache.rocketmq.common.action
2024-07-25 19:03:14 +08:00
lizhimins c080e6bbf2 [ISSUE #8438] Fix broker return two messages when query message and index service bug (#8439) 2024-07-25 11:38:31 +08:00
yx9o 6e6319f11a [ISSUE #8437] Add more test coverage for ClientRemotingProcessor (#8433)
* [ISSUE #8262] Add more test coverage for ClientRemotingProcessor

* Update

* Update
2024-07-24 14:05:28 +08:00
bxfjb 6fb455a1d4 [ISSUE #8409] Fix tiered storage roll file logic if committing the last part of a file failed (#8410)
Co-authored-by: zhaoyuhan <zhaoyuhan@xiaomi.com>
2024-07-23 14:53:39 +08:00
我是管小亮_V0x3f 0e56d8761c [ISSUE #8417] Add some test cases for org.apache.rocketmq.common.AclConfig (#8418)
* Which Issue(s) This PR Fixes
add test case for AclConfig in commom module
Fixes #8417

Brief Description
add test case for AclConfig in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.

* Which Issue(s) This PR Fixes
[Enhancement] Add test cases for org.apache.rocketmq.common.AclConfig #8417

Fixes #8417

Brief Description
add some test cases for org.apache.rocketmq.common.AclConfig.

How Did You Test This Change?
run test case successfull.
2024-07-23 10:26:41 +08:00
Tan Xiang 19ef754177 [ISSUE #8421] Add more test coverage for SlaveSynchronize (#8422) 2024-07-23 10:26:21 +08:00
imzs 8341c13d06 [ISSUE #8402] Fix init retry topic offset incorrect when EscapeBridge enabled (#8404) 2024-07-23 10:24:12 +08:00
rongtong 86d59d2485 Add the ability to write ConsumeQueue using fileChannel to prevent JVM crashes in some situations (#8403) 2024-07-22 17:20:11 +08:00
yueran 6ecdc48223 [ISSUE #8413] Add some test cases for commom module 2024-07-22 11:14:35 +08:00